{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive//Output/log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Jan 2024, 00:52:19
{txt}
{com}. 
. *US Survey 2021
. 
. use "$root/Data/cmps2021.dta", clear 
{txt}(                                                                   �)

{com}. 
. *Data preparation
. 
. gen ethnicity= S2_Race_Prime
{txt}
{com}. recode ethnicity 5=. 6=. 7=. 8=.
{txt}(1,363 changes made to {bf:ethnicity})

{com}. label define ethnicity_lab 1 "White" 2 "Latino" 3 "Black" 4 "Asian"
{txt}
{com}. label values ethnicity ethnicity_lab
{txt}
{com}. 
. gen polint=-Q29+4
{txt}
{com}. replace polint=polint/3
{txt}(16,717 real changes made)

{com}. su polint

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}polint {c |}{res}     19,013    .5945932    .3136047          0          1
{txt}
{com}. replace polint=`r(mean)' if polint==.
{txt}(0 real changes made)

{com}. 
. gen education=S13
{txt}(1 missing value generated)

{com}. 
. gen age=2020-S5
{txt}(1 missing value generated)

{com}. su age

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}age {c |}{res}     19,012    41.83284    18.27465         15        120
{txt}
{com}. replace age=`r(mean)' if age==.
{txt}(1 real change made)

{com}. 
. gen agesq=age*age
{txt}
{com}. 
. gen unemp=1 if Q814==5
{txt}(16,356 missing values generated)

{com}. recode unemp .=0 if Q814!=.
{txt}(16,356 changes made to {bf:unemp})

{com}. sum unemp 

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}unemp {c |}{res}     19,013    .1397465    .3467329          0          1
{txt}
{com}. replace unemp=`r(mean)' if unemp==.
{txt}(0 real changes made)

{com}. 
. gen gender=S3b
{txt}
{com}. recode gender 3=. 4=.
{txt}(291 changes made to {bf:gender})

{com}. 
. gen welcome=1 if Q574==1
{txt}(14,835 missing values generated)

{com}. recode welcome .=0
{txt}(14,835 changes made to {bf:welcome})

{com}. 
. gen welcome_parliament=-Q574+5
{txt}
{com}. 
. gen citizen=1 if Q807==1 | S7==1 | S7==3
{txt}(1,725 missing values generated)

{com}. recode citizen .=0
{txt}(1,725 changes made to {bf:citizen})

{com}. 
. drop if citizen==0
{txt}(1,725 observations deleted)

{com}. 
. drop if age<18
{txt}(1,760 observations deleted)

{com}. 
. tab welcome ethnicity, col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}                  ethnicity
   welcome {c |}     White     Latino      Black      Asian {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res}     2,754      2,399      3,397      2,583 {txt}{c |}{res}    11,133 
           {txt}{c |}{res}     73.46      78.12      77.86      80.42 {txt}{c |}{res}     77.34 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
         1 {c |}{res}       995        672        966        629 {txt}{c |}{res}     3,262 
           {txt}{c |}{res}     26.54      21.88      22.14      19.58 {txt}{c |}{res}     22.66 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     3,749      3,071      4,363      3,212 {txt}{c |}{res}    14,395 
           {txt}{c |}{res}    100.00     100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. tab welcome ethnicity [aw=os_weight], col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}                  ethnicity
   welcome {c |}     White     Latino      Black      Asian {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res} 3,316.278  2,274.723 3,231.5346  2,380.002 {txt}{c |}{res} 11,202.54 
           {txt}{c |}{res}     74.82      78.98      78.65      80.02 {txt}{c |}{res}     77.82 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
         1 {c |}{res}1,116.0667  605.30499  876.99991  594.09115 {txt}{c |}{res} 3,192.463 
           {txt}{c |}{res}     25.18      21.02      21.35      19.98 {txt}{c |}{res}     22.18 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res} 4,432.345  2,880.028  4,108.535  2,974.093 {txt}{c |}{res}    14,395 
           {txt}{c |}{res}    100.00     100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. ***Figure 1 (Upper left panel)***
. 
. graph bar (mean) welcome [aw=os_weight], over(ethnicity, label(labsize(small))) ytitle("")scheme(s2mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
> graphregion(margin(large))  ///
> title("US Survey 2021")
{res}{txt}
{com}. 
.   graph save "${c -(}root{c )-}Output/fig1us2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1us2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig1us2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1us2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Figure 2 (Upper left panel)***
. 
. reg welcome i.ethnicity [aw=os_weight], robust
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(3, 14391)       =  {res}     6.96
                                                {txt}Prob > F          = {res}    0.0001
                                                {txt}R-squared         = {res}    0.0025
                                                {txt}Root MSE          =    {res} .41499

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0416272{col 26}{space 2} .0121531{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.0654488{col 67}{space 3}-.0178057
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0383424{col 26}{space 2} .0110607{col 37}{space 1}   -3.47{col 46}{space 3}0.001{col 54}{space 4}-.0600228{col 67}{space 3}-.0166621
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0520451{col 26}{space 2} .0125076{col 37}{space 1}   -4.16{col 46}{space 3}0.000{col 54}{space 4}-.0765616{col 67}{space 3}-.0275287
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .2518005{col 26}{space 2} .0085298{col 37}{space 1}   29.52{col 46}{space 3}0.000{col 54}{space 4} .2350811{col 67}{space 3}   .26852
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.ethnicity 3.ethnicity 4.ethnicity) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.1 0)) xlabel(-0.1(0.02) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(US Survey 2021) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/fig2us2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2us2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig2us2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2us2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Figure A1 (Upper left panel)***
. 
. gen yesabsolutely=.
{txt}(15,528 missing values generated)

{com}. gen maybe=.
{txt}(15,528 missing values generated)

{com}. gen noprobably=.
{txt}(15,528 missing values generated)

{com}. gen noabsolutely=.
{txt}(15,528 missing values generated)

{com}. 
. replace yesabsolutely=1 if Q574==1 
{txt}(3,545 real changes made)

{com}. replace yesabsolutely=0 if Q574==2 | Q574==3 | Q574==4
{txt}(11,983 real changes made)

{com}. 
. replace maybe=1 if Q574==2
{txt}(6,913 real changes made)

{com}. replace maybe=0 if Q574==1 | Q574==3 | Q574==4
{txt}(8,615 real changes made)

{com}.  
. replace noprobably=1 if Q574==3
{txt}(3,759 real changes made)

{com}. replace noprobably=0 if Q574==1 | Q574==2 | Q574==4
{txt}(11,769 real changes made)

{com}. 
. replace noabsolutely=1 if Q574==4
{txt}(1,311 real changes made)

{com}. replace noabsolutely=0 if Q574==1 | Q574==2 | Q574==3
{txt}(14,217 real changes made)

{com}. 
. graph bar (mean) yesabsolutely maybe noprobably noabsolutely, over(ethnicity, label(labsize(small))) ytitle("")scheme(s1mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
>  graphregion(margin(large))  stack legend(order(1 "Yes, absolutely" 2 "Maybe" 3 "No, probably not" 4 "No, absolutely not")) ///
>  title("US Survey 2021")
{res}{txt}
{com}.  
.   graph save "${c -(}root{c )-}Output/figA1us2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1us2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA1us2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1us2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Figure A.2  (Upper left panel)***
. 
. global controls  gender age agesq  i.education unemp polint 
{txt}
{com}. 
. reg welcome i.ethnicity $controls [aw=os_weight], robust
{txt}(sum of wgt is 12,986.0272268699)

Linear regression                               Number of obs     = {res}    14,273
                                                {txt}F(14, 14258)      =  {res}    36.89
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0454
                                                {txt}Root MSE          =    {res} .40684

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0253506{col 26}{space 2}  .012092{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0490526{col 67}{space 3}-.0016487
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0270709{col 26}{space 2} .0109582{col 37}{space 1}   -2.47{col 46}{space 3}0.014{col 54}{space 4}-.0485504{col 67}{space 3}-.0055913
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0522173{col 26}{space 2} .0128417{col 37}{space 1}   -4.07{col 46}{space 3}0.000{col 54}{space 4}-.0773888{col 67}{space 3}-.0270459
{txt}{space 12} {c |}
{space 6}gender {c |}{col 14}{res}{space 2}-.0512579{col 26}{space 2} .0084133{col 37}{space 1}   -6.09{col 46}{space 3}0.000{col 54}{space 4} -.067749{col 67}{space 3}-.0347668
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0015907{col 26}{space 2}  .001409{col 37}{space 1}   -1.13{col 46}{space 3}0.259{col 54}{space 4}-.0043525{col 67}{space 3} .0011711
{txt}{space 7}agesq {c |}{col 14}{res}{space 2} .0000296{col 26}{space 2} .0000148{col 37}{space 1}    2.01{col 46}{space 3}0.045{col 54}{space 4} 6.74e-07{col 67}{space 3} .0000586
{txt}{space 12} {c |}
{space 3}education {c |}
{space 10}2  {c |}{col 14}{res}{space 2}-.0720705{col 26}{space 2} .0636978{col 37}{space 1}   -1.13{col 46}{space 3}0.258{col 54}{space 4}-.1969266{col 67}{space 3} .0527855
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0517481{col 26}{space 2} .0608856{col 37}{space 1}   -0.85{col 46}{space 3}0.395{col 54}{space 4}-.1710917{col 67}{space 3} .0675955
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0449661{col 26}{space 2} .0610582{col 37}{space 1}   -0.74{col 46}{space 3}0.461{col 54}{space 4}-.1646481{col 67}{space 3} .0747159
{txt}{space 10}5  {c |}{col 14}{res}{space 2} -.045439{col 26}{space 2} .0615093{col 37}{space 1}   -0.74{col 46}{space 3}0.460{col 54}{space 4}-.1660051{col 67}{space 3} .0751272
{txt}{space 10}6  {c |}{col 14}{res}{space 2}-.0436126{col 26}{space 2} .0611988{col 37}{space 1}   -0.71{col 46}{space 3}0.476{col 54}{space 4}-.1635703{col 67}{space 3} .0763451
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-.0173774{col 26}{space 2} .0617088{col 37}{space 1}   -0.28{col 46}{space 3}0.778{col 54}{space 4}-.1383347{col 67}{space 3} .1035799
{txt}{space 12} {c |}
{space 7}unemp {c |}{col 14}{res}{space 2}-.0425306{col 26}{space 2} .0114649{col 37}{space 1}   -3.71{col 46}{space 3}0.000{col 54}{space 4}-.0650033{col 67}{space 3}-.0200579
{txt}{space 6}polint {c |}{col 14}{res}{space 2} .2104381{col 26}{space 2} .0133344{col 37}{space 1}   15.78{col 46}{space 3}0.000{col 54}{space 4} .1843008{col 67}{space 3} .2365753
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .249693{col 26}{space 2} .0686551{col 37}{space 1}    3.64{col 46}{space 3}0.000{col 54}{space 4}   .11512{col 67}{space 3} .3842661
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.ethnicity 3.ethnicity 4.ethnicity) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.1 0)) xlabel(-0.1(0.02) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(US Survey 2021) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/figA2us2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2us2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA2us2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2us2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Table A.1***
. 
. gen member_cs=1 if Q86==1
{txt}(13,633 missing values generated)

{com}. recode member_cs .=0 if Q86!=.
{txt}(13,633 changes made to {bf:member_cs})

{com}. 
. gen active_cs=1 if Q88==1
{txt}(14,415 missing values generated)

{com}. recode active_cs .=0 
{txt}(14,415 changes made to {bf:active_cs})

{com}. 
. gen hipol=1 if polint==1
{txt}(11,488 missing values generated)

{com}. recode hipol .=0
{txt}(11,488 changes made to {bf:hipol})

{com}. 
. reg welcome i.ethnicity##hipol [aw=os_weight], robust
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(7, 14387)       =  {res}    36.05
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0294
                                                {txt}Root MSE          =    {res}  .4094

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}        welcome{col 17}{c |} Coefficient{col 29}  std. err.{col 41}      t{col 49}   P>|t|{col 57}     [95% con{col 70}f. interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}ethnicity {c |}
{space 8}Latino  {c |}{col 17}{res}{space 2}-.0271403{col 29}{space 2} .0133559{col 40}{space 1}   -2.03{col 49}{space 3}0.042{col 57}{space 4}-.0533195{col 70}{space 3} -.000961
{txt}{space 9}Black  {c |}{col 17}{res}{space 2}-.0358227{col 29}{space 2} .0120744{col 40}{space 1}   -2.97{col 49}{space 3}0.003{col 57}{space 4}-.0594901{col 70}{space 3}-.0121553
{txt}{space 9}Asian  {c |}{col 17}{res}{space 2}-.0312595{col 29}{space 2} .0135926{col 40}{space 1}   -2.30{col 49}{space 3}0.021{col 57}{space 4}-.0579028{col 70}{space 3}-.0046162
{txt}{space 15} {c |}
{space 8}1.hipol {c |}{col 17}{res}{space 2} .1628493{col 29}{space 2} .0204162{col 40}{space 1}    7.98{col 49}{space 3}0.000{col 57}{space 4} .1228308{col 70}{space 3} .2028677
{txt}{space 15} {c |}
ethnicity#hipol {c |}
{space 6}Latino#1  {c |}{col 17}{res}{space 2}-.0217403{col 29}{space 2} .0298642{col 40}{space 1}   -0.73{col 49}{space 3}0.467{col 57}{space 4} -.080278{col 70}{space 3} .0367974
{txt}{space 7}Black#1  {c |}{col 17}{res}{space 2} .0092551{col 29}{space 2} .0267829{col 40}{space 1}    0.35{col 49}{space 3}0.730{col 57}{space 4}-.0432428{col 70}{space 3}  .061753
{txt}{space 7}Asian#1  {c |}{col 17}{res}{space 2}-.0217658{col 29}{space 2} .0326588{col 40}{space 1}   -0.67{col 49}{space 3}0.505{col 57}{space 4}-.0857813{col 70}{space 3} .0422497
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2} .2045129{col 29}{space 2} .0094426{col 40}{space 1}   21.66{col 49}{space 3}0.000{col 57}{space 4} .1860042{col 70}{space 3} .2230216
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA1.tex", replace  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.txt""':seeout}

{com}. reg welcome i.ethnicity##member_cs [aw=os_weight], robust
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(7, 14387)       =  {res}    26.88
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0218
                                                {txt}Root MSE          =    {res}   .411

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0427191{col 26}{space 2} .0125677{col 37}{space 1}   -3.40{col 46}{space 3}0.001{col 54}{space 4}-.0673534{col 67}{space 3}-.0180848
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0443307{col 26}{space 2} .0113864{col 37}{space 1}   -3.89{col 46}{space 3}0.000{col 54}{space 4}-.0666495{col 67}{space 3}-.0220119
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0475031{col 26}{space 2} .0128685{col 37}{space 1}   -3.69{col 46}{space 3}0.000{col 54}{space 4} -.072727{col 67}{space 3}-.0222792
{txt}{space 12} {c |}
{space 1}1.member_cs {c |}{col 14}{res}{space 2} .1832976{col 26}{space 2} .0299738{col 37}{space 1}    6.12{col 46}{space 3}0.000{col 54}{space 4} .1245451{col 67}{space 3}   .24205
{txt}{space 12} {c |}
{space 3}ethnicity#{c |}
{space 3}member_cs {c |}
{space 3}Latino#1  {c |}{col 14}{res}{space 2}-.0065172{col 26}{space 2} .0427498{col 37}{space 1}   -0.15{col 46}{space 3}0.879{col 54}{space 4}-.0903123{col 67}{space 3} .0772778
{txt}{space 4}Black#1  {c |}{col 14}{res}{space 2} .0239699{col 26}{space 2} .0387908{col 37}{space 1}    0.62{col 46}{space 3}0.537{col 54}{space 4}-.0520651{col 67}{space 3}  .100005
{txt}{space 4}Asian#1  {c |}{col 14}{res}{space 2}-.0060086{col 26}{space 2} .0473801{col 37}{space 1}   -0.13{col 46}{space 3}0.899{col 54}{space 4}-.0988798{col 67}{space 3} .0868626
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .2330563{col 26}{space 2} .0088384{col 37}{space 1}   26.37{col 46}{space 3}0.000{col 54}{space 4} .2157319{col 67}{space 3} .2503806
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA1.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.txt""':seeout}

{com}. reg welcome i.ethnicity##active_cs [aw=os_weight], robust
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(7, 14387)       =  {res}    25.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0227
                                                {txt}Root MSE          =    {res} .41081

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0409574{col 26}{space 2} .0122717{col 37}{space 1}   -3.34{col 46}{space 3}0.001{col 54}{space 4}-.0650114{col 67}{space 3}-.0169033
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0409874{col 26}{space 2} .0111507{col 37}{space 1}   -3.68{col 46}{space 3}0.000{col 54}{space 4}-.0628442{col 67}{space 3}-.0191305
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0473599{col 26}{space 2} .0126097{col 37}{space 1}   -3.76{col 46}{space 3}0.000{col 54}{space 4}-.0720764{col 67}{space 3}-.0226433
{txt}{space 12} {c |}
{space 1}1.active_cs {c |}{col 14}{res}{space 2} .2691072{col 26}{space 2}   .03984{col 37}{space 1}    6.75{col 46}{space 3}0.000{col 54}{space 4} .1910156{col 67}{space 3} .3471987
{txt}{space 12} {c |}
{space 3}ethnicity#{c |}
{space 3}active_cs {c |}
{space 3}Latino#1  {c |}{col 14}{res}{space 2}-.0430649{col 26}{space 2} .0577022{col 37}{space 1}   -0.75{col 46}{space 3}0.455{col 54}{space 4}-.1561685{col 67}{space 3} .0700388
{txt}{space 4}Black#1  {c |}{col 14}{res}{space 2}-.0170008{col 26}{space 2} .0511189{col 37}{space 1}   -0.33{col 46}{space 3}0.739{col 54}{space 4}-.1172005{col 67}{space 3} .0831989
{txt}{space 4}Asian#1  {c |}{col 14}{res}{space 2}-.0329694{col 26}{space 2} .0639355{col 37}{space 1}   -0.52{col 46}{space 3}0.606{col 54}{space 4}-.1582912{col 67}{space 3} .0923524
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .2365581{col 26}{space 2} .0086275{col 37}{space 1}   27.42{col 46}{space 3}0.000{col 54}{space 4}  .219647{col 67}{space 3} .2534692
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA1.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA1.txt""':seeout}

{com}. 
. ***Table A.3  (first two columns)***
. 
. gen willingdum=1 if Q573==1
{txt}(13,220 missing values generated)

{com}. recode willingdum .=0 if Q573==2 | Q573==3
{txt}(13,220 changes made to {bf:willingdum})

{com}. 
. reg willingdum welcome if ethnicity!=. [aw=os_weight], robust 
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(1, 14393)       =  {res}   349.32
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0557
                                                {txt}Root MSE          =    {res} .33381

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1952203{col 26}{space 2} .0104451{col 37}{space 1}   18.69{col 46}{space 3}0.000{col 54}{space 4} .1747466{col 67}{space 3} .2156941
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0933719{col 26}{space 2} .0034388{col 37}{space 1}   27.15{col 46}{space 3}0.000{col 54}{space 4} .0866315{col 67}{space 3} .1001124
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", replace keep(welcome )   
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. reg willingdum welcome $controls if ethnicity!=. [aw=os_weight], robust 
{txt}(sum of wgt is 12,986.0272268699)

Linear regression                               Number of obs     = {res}    14,273
                                                {txt}F(12, 14260)      =  {res}    94.50
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1274
                                                {txt}Root MSE          =    {res} .32091

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1788961{col 26}{space 2} .0101345{col 37}{space 1}   17.65{col 46}{space 3}0.000{col 54}{space 4} .1590312{col 67}{space 3}  .198761
{txt}{space 6}gender {c |}{col 14}{res}{space 2}-.0470686{col 26}{space 2} .0068077{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.0604126{col 67}{space 3}-.0337247
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0039585{col 26}{space 2} .0014602{col 37}{space 1}   -2.71{col 46}{space 3}0.007{col 54}{space 4}-.0068207{col 67}{space 3}-.0010963
{txt}{space 7}agesq {c |}{col 14}{res}{space 2}-1.69e-06{col 26}{space 2} .0000153{col 37}{space 1}   -0.11{col 46}{space 3}0.912{col 54}{space 4}-.0000316{col 67}{space 3} .0000283
{txt}{space 12} {c |}
{space 3}education {c |}
{space 10}2  {c |}{col 14}{res}{space 2} .0541638{col 26}{space 2} .0494074{col 37}{space 1}    1.10{col 46}{space 3}0.273{col 54}{space 4}-.0426812{col 67}{space 3} .1510088
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0159733{col 26}{space 2}  .044327{col 37}{space 1}    0.36{col 46}{space 3}0.719{col 54}{space 4}-.0709134{col 67}{space 3} .1028599
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0112492{col 26}{space 2} .0443649{col 37}{space 1}    0.25{col 46}{space 3}0.800{col 54}{space 4}-.0757119{col 67}{space 3} .0982102
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0130929{col 26}{space 2}  .044579{col 37}{space 1}    0.29{col 46}{space 3}0.769{col 54}{space 4}-.0742877{col 67}{space 3} .1004735
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0046995{col 26}{space 2}  .044156{col 37}{space 1}    0.11{col 46}{space 3}0.915{col 54}{space 4}-.0818519{col 67}{space 3}  .091251
{txt}{space 10}7  {c |}{col 14}{res}{space 2}  .019124{col 26}{space 2} .0446397{col 37}{space 1}    0.43{col 46}{space 3}0.668{col 54}{space 4}-.0683757{col 67}{space 3} .1066237
{txt}{space 12} {c |}
{space 7}unemp {c |}{col 14}{res}{space 2}-.0089143{col 26}{space 2} .0104364{col 37}{space 1}   -0.85{col 46}{space 3}0.393{col 54}{space 4}-.0293711{col 67}{space 3} .0115424
{txt}{space 6}polint {c |}{col 14}{res}{space 2} .1941212{col 26}{space 2} .0106304{col 37}{space 1}   18.26{col 46}{space 3}0.000{col 54}{space 4} .1732842{col 67}{space 3} .2149581
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2271684{col 26}{space 2} .0592229{col 37}{space 1}    3.84{col 46}{space 3}0.000{col 54}{space 4} .1110837{col 67}{space 3} .3432531
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", append   keep(welcome ) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. 
. ***Table A.5***
. 
. reg welcome i.ethnicity [aw=os_weight], robust 
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(3, 14391)       =  {res}     6.96
                                                {txt}Prob > F          = {res}    0.0001
                                                {txt}R-squared         = {res}    0.0025
                                                {txt}Root MSE          =    {res} .41499

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0416272{col 26}{space 2} .0121531{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.0654488{col 67}{space 3}-.0178057
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0383424{col 26}{space 2} .0110607{col 37}{space 1}   -3.47{col 46}{space 3}0.001{col 54}{space 4}-.0600228{col 67}{space 3}-.0166621
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0520451{col 26}{space 2} .0125076{col 37}{space 1}   -4.16{col 46}{space 3}0.000{col 54}{space 4}-.0765616{col 67}{space 3}-.0275287
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .2518005{col 26}{space 2} .0085298{col 37}{space 1}   29.52{col 46}{space 3}0.000{col 54}{space 4} .2350811{col 67}{space 3}   .26852
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA5.tex", replace 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.txt""':seeout}

{com}. reg welcome i.ethnicity $controls [aw=os_weight] , robust 
{txt}(sum of wgt is 12,986.0272268699)

Linear regression                               Number of obs     = {res}    14,273
                                                {txt}F(14, 14258)      =  {res}    36.89
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0454
                                                {txt}Root MSE          =    {res} .40684

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     welcome{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}ethnicity {c |}
{space 5}Latino  {c |}{col 14}{res}{space 2}-.0253506{col 26}{space 2}  .012092{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0490526{col 67}{space 3}-.0016487
{txt}{space 6}Black  {c |}{col 14}{res}{space 2}-.0270709{col 26}{space 2} .0109582{col 37}{space 1}   -2.47{col 46}{space 3}0.014{col 54}{space 4}-.0485504{col 67}{space 3}-.0055913
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0522173{col 26}{space 2} .0128417{col 37}{space 1}   -4.07{col 46}{space 3}0.000{col 54}{space 4}-.0773888{col 67}{space 3}-.0270459
{txt}{space 12} {c |}
{space 6}gender {c |}{col 14}{res}{space 2}-.0512579{col 26}{space 2} .0084133{col 37}{space 1}   -6.09{col 46}{space 3}0.000{col 54}{space 4} -.067749{col 67}{space 3}-.0347668
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0015907{col 26}{space 2}  .001409{col 37}{space 1}   -1.13{col 46}{space 3}0.259{col 54}{space 4}-.0043525{col 67}{space 3} .0011711
{txt}{space 7}agesq {c |}{col 14}{res}{space 2} .0000296{col 26}{space 2} .0000148{col 37}{space 1}    2.01{col 46}{space 3}0.045{col 54}{space 4} 6.74e-07{col 67}{space 3} .0000586
{txt}{space 12} {c |}
{space 3}education {c |}
{space 10}2  {c |}{col 14}{res}{space 2}-.0720705{col 26}{space 2} .0636978{col 37}{space 1}   -1.13{col 46}{space 3}0.258{col 54}{space 4}-.1969266{col 67}{space 3} .0527855
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0517481{col 26}{space 2} .0608856{col 37}{space 1}   -0.85{col 46}{space 3}0.395{col 54}{space 4}-.1710917{col 67}{space 3} .0675955
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0449661{col 26}{space 2} .0610582{col 37}{space 1}   -0.74{col 46}{space 3}0.461{col 54}{space 4}-.1646481{col 67}{space 3} .0747159
{txt}{space 10}5  {c |}{col 14}{res}{space 2} -.045439{col 26}{space 2} .0615093{col 37}{space 1}   -0.74{col 46}{space 3}0.460{col 54}{space 4}-.1660051{col 67}{space 3} .0751272
{txt}{space 10}6  {c |}{col 14}{res}{space 2}-.0436126{col 26}{space 2} .0611988{col 37}{space 1}   -0.71{col 46}{space 3}0.476{col 54}{space 4}-.1635703{col 67}{space 3} .0763451
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-.0173774{col 26}{space 2} .0617088{col 37}{space 1}   -0.28{col 46}{space 3}0.778{col 54}{space 4}-.1383347{col 67}{space 3} .1035799
{txt}{space 12} {c |}
{space 7}unemp {c |}{col 14}{res}{space 2}-.0425306{col 26}{space 2} .0114649{col 37}{space 1}   -3.71{col 46}{space 3}0.000{col 54}{space 4}-.0650033{col 67}{space 3}-.0200579
{txt}{space 6}polint {c |}{col 14}{res}{space 2} .2104381{col 26}{space 2} .0133344{col 37}{space 1}   15.78{col 46}{space 3}0.000{col 54}{space 4} .1843008{col 67}{space 3} .2365753
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .249693{col 26}{space 2} .0686551{col 37}{space 1}    3.64{col 46}{space 3}0.000{col 54}{space 4}   .11512{col 67}{space 3} .3842661
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA5.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA5.txt""':seeout}

{com}. 
. ***Table A.6***
. 
. foreach i of num 1/3 {c -(}  
{txt}  2{com}. gen poldisc_`i'=1 if Q281r`i'==1 
{txt}  3{com}. recode poldisc_`i' .=0
{txt}  4{com}. {c )-}
{txt}(14,214 missing values generated)
(14,214 changes made to {bf:poldisc_1})
(13,428 missing values generated)
(13,428 changes made to {bf:poldisc_2})
(14,603 missing values generated)
(14,603 changes made to {bf:poldisc_3})

{com}. 
. egen poldisc=rmean(poldisc_2-poldisc_3)
{txt}
{com}. 
. alpha poldisc_2-poldisc_3

{txt}Test scale = mean(unstandardized items)

Average interitem covariance:{col 34}{res} .0148711
{txt}Number of items in the scale:{col 34}{res}        2
{txt}Scale reliability coefficient:{col 34}{res}   0.2934
{txt}
{com}. 
. foreach i of num 4/7 {c -(}
{txt}  2{com}. gen socdisc_`i'=1 if Q281r`i'==1 
{txt}  3{com}. recode socdisc_`i' .=0
{txt}  4{com}. {c )-}
{txt}(13,074 missing values generated)
(13,074 changes made to {bf:socdisc_4})
(13,384 missing values generated)
(13,384 changes made to {bf:socdisc_5})
(12,518 missing values generated)
(12,518 changes made to {bf:socdisc_6})
(11,735 missing values generated)
(11,735 changes made to {bf:socdisc_7})

{com}. 
. egen socdisc=rmean(socdisc_4-socdisc_7)
{txt}
{com}. 
. alpha socdisc_4-socdisc_7

{txt}Test scale = mean(unstandardized items)

Average interitem covariance:{col 34}{res} .0495103
{txt}Number of items in the scale:{col 34}{res}        4
{txt}Scale reliability coefficient:{col 34}{res}   0.6673
{txt}
{com}. 
. reg willingdum welcome if ethnicity!=. [aw=os_weight], robust 
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(1, 14393)       =  {res}   349.32
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0557
                                                {txt}Root MSE          =    {res} .33381

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1952203{col 26}{space 2} .0104451{col 37}{space 1}   18.69{col 46}{space 3}0.000{col 54}{space 4} .1747466{col 67}{space 3} .2156941
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0933719{col 26}{space 2} .0034388{col 37}{space 1}   27.15{col 46}{space 3}0.000{col 54}{space 4} .0866315{col 67}{space 3} .1001124
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA6.tex", replace keep(welcome ) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.txt""':seeout}

{com}. reg willingdum welcome poldisc socdisc if ethnicity!=. [aw=os_weight], robust 
{txt}(sum of wgt is 13,070.819582657)

Linear regression                               Number of obs     = {res}    14,395
                                                {txt}F(3, 14391)       =  {res}   221.43
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0968
                                                {txt}Root MSE          =    {res} .32649

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1956138{col 26}{space 2} .0101905{col 37}{space 1}   19.20{col 46}{space 3}0.000{col 54}{space 4} .1756392{col 67}{space 3} .2155884
{txt}{space 5}poldisc {c |}{col 14}{res}{space 2}  .259244{col 26}{space 2} .0205068{col 37}{space 1}   12.64{col 46}{space 3}0.000{col 54}{space 4}  .219048{col 67}{space 3} .2994401
{txt}{space 5}socdisc {c |}{col 14}{res}{space 2}  .095321{col 26}{space 2} .0153285{col 37}{space 1}    6.22{col 46}{space 3}0.000{col 54}{space 4} .0652752{col 67}{space 3} .1253668
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .053881{col 26}{space 2} .0038324{col 37}{space 1}   14.06{col 46}{space 3}0.000{col 54}{space 4}  .046369{col 67}{space 3}  .061393
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA6.tex", append keep(welcome poldisc socdisc)    
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.txt""':seeout}

{com}. reg willingdum welcome poldisc socdisc $controls if ethnicity!=. [aw=os_weight], robust 
{txt}(sum of wgt is 12,986.0272268699)

Linear regression                               Number of obs     = {res}    14,273
                                                {txt}F(14, 14258)      =  {res}    95.75
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1479
                                                {txt}Root MSE          =    {res} .31713

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1792164{col 26}{space 2} .0100343{col 37}{space 1}   17.86{col 46}{space 3}0.000{col 54}{space 4} .1595479{col 67}{space 3} .1988849
{txt}{space 5}poldisc {c |}{col 14}{res}{space 2} .1855065{col 26}{space 2} .0205451{col 37}{space 1}    9.03{col 46}{space 3}0.000{col 54}{space 4} .1452353{col 67}{space 3} .2257776
{txt}{space 5}socdisc {c |}{col 14}{res}{space 2} .0751231{col 26}{space 2}  .015307{col 37}{space 1}    4.91{col 46}{space 3}0.000{col 54}{space 4} .0451194{col 67}{space 3} .1051267
{txt}{space 6}gender {c |}{col 14}{res}{space 2}-.0406248{col 26}{space 2} .0067706{col 37}{space 1}   -6.00{col 46}{space 3}0.000{col 54}{space 4} -.053896{col 67}{space 3}-.0273536
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0030099{col 26}{space 2} .0013593{col 37}{space 1}   -2.21{col 46}{space 3}0.027{col 54}{space 4}-.0056744{col 67}{space 3}-.0003454
{txt}{space 7}agesq {c |}{col 14}{res}{space 2}-3.87e-06{col 26}{space 2} .0000141{col 37}{space 1}   -0.27{col 46}{space 3}0.784{col 54}{space 4}-.0000316{col 67}{space 3} .0000238
{txt}{space 12} {c |}
{space 3}education {c |}
{space 10}2  {c |}{col 14}{res}{space 2} .0548471{col 26}{space 2} .0495025{col 37}{space 1}    1.11{col 46}{space 3}0.268{col 54}{space 4}-.0421843{col 67}{space 3} .1518785
{txt}{space 10}3  {c |}{col 14}{res}{space 2}  .021632{col 26}{space 2} .0440797{col 37}{space 1}    0.49{col 46}{space 3}0.624{col 54}{space 4}-.0647699{col 67}{space 3} .1080339
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0201765{col 26}{space 2} .0441413{col 37}{space 1}    0.46{col 46}{space 3}0.648{col 54}{space 4}-.0663461{col 67}{space 3} .1066991
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0196624{col 26}{space 2} .0443587{col 37}{space 1}    0.44{col 46}{space 3}0.658{col 54}{space 4}-.0672863{col 67}{space 3} .1066111
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0140952{col 26}{space 2} .0439552{col 37}{space 1}    0.32{col 46}{space 3}0.748{col 54}{space 4}-.0720627{col 67}{space 3} .1002531
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .0262467{col 26}{space 2} .0444263{col 37}{space 1}    0.59{col 46}{space 3}0.555{col 54}{space 4}-.0608347{col 67}{space 3} .1133281
{txt}{space 12} {c |}
{space 7}unemp {c |}{col 14}{res}{space 2}-.0067093{col 26}{space 2} .0104174{col 37}{space 1}   -0.64{col 46}{space 3}0.520{col 54}{space 4}-.0271288{col 67}{space 3} .0137102
{txt}{space 6}polint {c |}{col 14}{res}{space 2} .1809372{col 26}{space 2}  .010641{col 37}{space 1}   17.00{col 46}{space 3}0.000{col 54}{space 4} .1600794{col 67}{space 3} .2017951
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .149579{col 26}{space 2} .0567424{col 37}{space 1}    2.64{col 46}{space 3}0.008{col 54}{space 4} .0383565{col 67}{space 3} .2608014
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA6.tex", append   keep(welcome poldisc socdisc) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA6.txt""':seeout}

{com}. 
. ***Table A.9***
. 
. oprobit welcome_parliament i.ethnicity [aw=os_weight], robust 

{txt}(sum of wgt is 13,070.819582657)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-18094.388}  
Iteration 1:{space 3}log pseudolikelihood = {res:-18079.365}  
Iteration 2:{space 3}log pseudolikelihood = {res:-18079.365}  
{res}
{txt}{col 1}Ordered probit regression{col 56}{lalign 13:Number of obs}{col 69} = {res}{ralign 7:14,395}
{txt}{col 56}{lalign 13:Wald chi2({res:3})}{col 69} = {res}{ralign 7:18.01}
{txt}{col 56}{lalign 13:Prob > chi2}{col 69} = {res}{ralign 7:0.0004}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-18079.365}{txt}{col 56}{lalign 13:Pseudo R2}{col 69} = {res}{ralign 7:-0.1004}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ethnicity {c |}
{space 9}Latino  {c |}{col 18}{res}{space 2}-.1199278{col 30}{space 2} .0318983{col 41}{space 1}   -3.76{col 50}{space 3}0.000{col 58}{space 4}-.1824473{col 71}{space 3}-.0574082
{txt}{space 10}Black  {c |}{col 18}{res}{space 2}-.0984218{col 30}{space 2} .0291247{col 41}{space 1}   -3.38{col 50}{space 3}0.001{col 58}{space 4}-.1555051{col 71}{space 3}-.0413384
{txt}{space 10}Asian  {c |}{col 18}{res}{space 2}-.0998069{col 30}{space 2}  .033082{col 41}{space 1}   -3.02{col 50}{space 3}0.003{col 58}{space 4}-.1646464{col 71}{space 3}-.0349675
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-1.406982{col 30}{space 2} .0269512{col 58}{space 4}-1.459805{col 71}{space 3}-1.354158
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-.5008033{col 30}{space 2} .0229917{col 58}{space 4}-.5458663{col 71}{space 3}-.4557404
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} .6944538{col 30}{space 2} .0231769{col 58}{space 4} .6490278{col 71}{space 3} .7398798
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA9.tex", replace 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.txt""':seeout}

{com}. oprobit welcome_parliament i.ethnicity $controls [aw=os_weight] , robust 

{txt}(sum of wgt is 12,986.0272268699)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-17935.663}  
Iteration 1:{space 3}log pseudolikelihood = {res:-17372.039}  
Iteration 2:{space 3}log pseudolikelihood = {res:-17371.719}  
Iteration 3:{space 3}log pseudolikelihood = {res:-17371.719}  
{res}
{txt}{col 1}Ordered probit regression{col 56}{lalign 13:Number of obs}{col 69} = {res}{ralign 7:14,273}
{txt}{col 56}{lalign 13:Wald chi2({res:14})}{col 69} = {res}{ralign 7:733.37}
{txt}{col 56}{lalign 13:Prob > chi2}{col 69} = {res}{ralign 7:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-17371.719}{txt}{col 56}{lalign 13:Pseudo R2}{col 69} = {res}{ralign 7:-0.0645}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ethnicity {c |}
{space 9}Latino  {c |}{col 18}{res}{space 2}-.0567721{col 30}{space 2} .0325191{col 41}{space 1}   -1.75{col 50}{space 3}0.081{col 58}{space 4}-.1205084{col 71}{space 3} .0069642
{txt}{space 10}Black  {c |}{col 18}{res}{space 2}-.0605672{col 30}{space 2} .0295383{col 41}{space 1}   -2.05{col 50}{space 3}0.040{col 58}{space 4}-.1184612{col 71}{space 3}-.0026733
{txt}{space 10}Asian  {c |}{col 18}{res}{space 2}-.1126146{col 30}{space 2} .0352493{col 41}{space 1}   -3.19{col 50}{space 3}0.001{col 58}{space 4}-.1817019{col 71}{space 3}-.0435274
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2}-.1024416{col 30}{space 2}   .02293{col 41}{space 1}   -4.47{col 50}{space 3}0.000{col 58}{space 4}-.1473837{col 71}{space 3}-.0574996
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0084867{col 30}{space 2} .0038653{col 41}{space 1}   -2.20{col 50}{space 3}0.028{col 58}{space 4}-.0160624{col 71}{space 3}-.0009109
{txt}{space 11}agesq {c |}{col 18}{res}{space 2} .0001371{col 30}{space 2} .0000397{col 41}{space 1}    3.45{col 50}{space 3}0.001{col 58}{space 4} .0000593{col 71}{space 3} .0002149
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2}-.2477755{col 30}{space 2} .1661859{col 41}{space 1}   -1.49{col 50}{space 3}0.136{col 58}{space 4}-.5734939{col 71}{space 3} .0779429
{txt}{space 14}3  {c |}{col 18}{res}{space 2}-.1424173{col 30}{space 2} .1556406{col 41}{space 1}   -0.92{col 50}{space 3}0.360{col 58}{space 4}-.4474673{col 71}{space 3} .1626327
{txt}{space 14}4  {c |}{col 18}{res}{space 2}-.1024072{col 30}{space 2} .1556591{col 41}{space 1}   -0.66{col 50}{space 3}0.511{col 58}{space 4}-.4074933{col 71}{space 3}  .202679
{txt}{space 14}5  {c |}{col 18}{res}{space 2} -.086028{col 30}{space 2} .1568933{col 41}{space 1}   -0.55{col 50}{space 3}0.583{col 58}{space 4}-.3935332{col 71}{space 3} .2214771
{txt}{space 14}6  {c |}{col 18}{res}{space 2}-.0237413{col 30}{space 2} .1559027{col 41}{space 1}   -0.15{col 50}{space 3}0.879{col 58}{space 4} -.329305{col 71}{space 3} .2818224
{txt}{space 14}7  {c |}{col 18}{res}{space 2} .0268648{col 30}{space 2} .1569958{col 41}{space 1}    0.17{col 50}{space 3}0.864{col 58}{space 4}-.2808414{col 71}{space 3}  .334571
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2}-.1016677{col 30}{space 2} .0330444{col 41}{space 1}   -3.08{col 50}{space 3}0.002{col 58}{space 4}-.1664336{col 71}{space 3}-.0369019
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .7585708{col 30}{space 2} .0393898{col 41}{space 1}   19.26{col 50}{space 3}0.000{col 58}{space 4} .6813682{col 71}{space 3} .8357733
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-1.309163{col 30}{space 2} .1800809{col 58}{space 4}-1.662116{col 71}{space 3}-.9562114
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-.3586478{col 30}{space 2}  .180268{col 58}{space 4}-.7119666{col 71}{space 3}-.0053289
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}  .888659{col 30}{space 2} .1806266{col 58}{space 4} .5346373{col 71}{space 3} 1.242681
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA9.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA9.txt""':seeout}

{com}. 
. ***Table A.11***
. 
. oprobit welcome_parliament i.ethnicity [aw=os_weight], robust

{txt}(sum of wgt is 13,070.819582657)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-18094.388}  
Iteration 1:{space 3}log pseudolikelihood = {res:-18079.365}  
Iteration 2:{space 3}log pseudolikelihood = {res:-18079.365}  
{res}
{txt}{col 1}Ordered probit regression{col 56}{lalign 13:Number of obs}{col 69} = {res}{ralign 7:14,395}
{txt}{col 56}{lalign 13:Wald chi2({res:3})}{col 69} = {res}{ralign 7:18.01}
{txt}{col 56}{lalign 13:Prob > chi2}{col 69} = {res}{ralign 7:0.0004}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-18079.365}{txt}{col 56}{lalign 13:Pseudo R2}{col 69} = {res}{ralign 7:-0.1004}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ethnicity {c |}
{space 9}Latino  {c |}{col 18}{res}{space 2}-.1199278{col 30}{space 2} .0318983{col 41}{space 1}   -3.76{col 50}{space 3}0.000{col 58}{space 4}-.1824473{col 71}{space 3}-.0574082
{txt}{space 10}Black  {c |}{col 18}{res}{space 2}-.0984218{col 30}{space 2} .0291247{col 41}{space 1}   -3.38{col 50}{space 3}0.001{col 58}{space 4}-.1555051{col 71}{space 3}-.0413384
{txt}{space 10}Asian  {c |}{col 18}{res}{space 2}-.0998069{col 30}{space 2}  .033082{col 41}{space 1}   -3.02{col 50}{space 3}0.003{col 58}{space 4}-.1646464{col 71}{space 3}-.0349675
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-1.406982{col 30}{space 2} .0269512{col 58}{space 4}-1.459805{col 71}{space 3}-1.354158
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-.5008033{col 30}{space 2} .0229917{col 58}{space 4}-.5458663{col 71}{space 3}-.4557404
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} .6944538{col 30}{space 2} .0231769{col 58}{space 4} .6490278{col 71}{space 3} .7398798
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(i.ethnicity) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:14,395}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.ethnicity 3.ethnicity 4.ethnicity}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 11:1.ethnicity} = {res:{ralign 8:.3079086}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:2.ethnicity} = {res:{ralign 8:.2000714}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:3.ethnicity} = {res:{ralign 8:.285414}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:4.ethnicity} = {res:{ralign 8:.206606}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.ethnicity {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0193213{col 26}{space 2} .0051888{col 37}{space 1}    3.72{col 46}{space 3}0.000{col 54}{space 4} .0091515{col 67}{space 3} .0294912
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0240717{col 26}{space 2}  .006411{col 37}{space 1}    3.75{col 46}{space 3}0.000{col 54}{space 4} .0115063{col 67}{space 3}  .036637
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0074074{col 26}{space 2} .0021611{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.0116431{col 67}{space 3}-.0031717
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0359856{col 26}{space 2} .0095384{col 37}{space 1}   -3.77{col 46}{space 3}0.000{col 54}{space 4}-.0546806{col 67}{space 3}-.0172907
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0156253{col 26}{space 2} .0046121{col 37}{space 1}    3.39{col 46}{space 3}0.001{col 54}{space 4} .0065857{col 67}{space 3}  .024665
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0198215{col 26}{space 2} .0058778{col 37}{space 1}    3.37{col 46}{space 3}0.001{col 54}{space 4} .0083012{col 67}{space 3} .0313418
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0056732{col 26}{space 2} .0017105{col 37}{space 1}   -3.32{col 46}{space 3}0.001{col 54}{space 4}-.0090257{col 67}{space 3}-.0023206
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0297737{col 26}{space 2} .0088479{col 37}{space 1}   -3.37{col 46}{space 3}0.001{col 54}{space 4}-.0471153{col 67}{space 3}-.0124321
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}4.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0158603{col 26}{space 2}  .005332{col 37}{space 1}    2.97{col 46}{space 3}0.003{col 54}{space 4} .0054097{col 67}{space 3} .0263108
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0200963{col 26}{space 2} .0066478{col 37}{space 1}    3.02{col 46}{space 3}0.003{col 54}{space 4} .0070669{col 67}{space 3} .0331258
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0057796{col 26}{space 2} .0021018{col 37}{space 1}   -2.75{col 46}{space 3}0.006{col 54}{space 4} -.009899{col 67}{space 3}-.0016602
{txt}{space 10}4  {c |}{col 14}{res}{space 2} -.030177{col 26}{space 2} .0099533{col 37}{space 1}   -3.03{col 46}{space 3}0.002{col 54}{space 4}-.0496851{col 67}{space 3}-.0106689
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. di %05.3f  el(r(b),1,5)
{res}0.019
{txt}
{com}. 
. foreach x of numlist 5/16 {c -(}
{txt}  2{com}. local b`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local se`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`b`x''/`se`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`b`x''/`se`x'') >= 1.65 local star`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`b`x''/`se`x'') >= 1.96 local star`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`b`x''/`se`x'') >= 2.58 local star`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. oprobit welcome_parliament i.ethnicity $controls [aw=os_weight], robust

{txt}(sum of wgt is 12,986.0272268699)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-17935.663}  
Iteration 1:{space 3}log pseudolikelihood = {res:-17372.039}  
Iteration 2:{space 3}log pseudolikelihood = {res:-17371.719}  
Iteration 3:{space 3}log pseudolikelihood = {res:-17371.719}  
{res}
{txt}{col 1}Ordered probit regression{col 56}{lalign 13:Number of obs}{col 69} = {res}{ralign 7:14,273}
{txt}{col 56}{lalign 13:Wald chi2({res:14})}{col 69} = {res}{ralign 7:733.37}
{txt}{col 56}{lalign 13:Prob > chi2}{col 69} = {res}{ralign 7:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-17371.719}{txt}{col 56}{lalign 13:Pseudo R2}{col 69} = {res}{ralign 7:-0.0645}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}ethnicity {c |}
{space 9}Latino  {c |}{col 18}{res}{space 2}-.0567721{col 30}{space 2} .0325191{col 41}{space 1}   -1.75{col 50}{space 3}0.081{col 58}{space 4}-.1205084{col 71}{space 3} .0069642
{txt}{space 10}Black  {c |}{col 18}{res}{space 2}-.0605672{col 30}{space 2} .0295383{col 41}{space 1}   -2.05{col 50}{space 3}0.040{col 58}{space 4}-.1184612{col 71}{space 3}-.0026733
{txt}{space 10}Asian  {c |}{col 18}{res}{space 2}-.1126146{col 30}{space 2} .0352493{col 41}{space 1}   -3.19{col 50}{space 3}0.001{col 58}{space 4}-.1817019{col 71}{space 3}-.0435274
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2}-.1024416{col 30}{space 2}   .02293{col 41}{space 1}   -4.47{col 50}{space 3}0.000{col 58}{space 4}-.1473837{col 71}{space 3}-.0574996
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0084867{col 30}{space 2} .0038653{col 41}{space 1}   -2.20{col 50}{space 3}0.028{col 58}{space 4}-.0160624{col 71}{space 3}-.0009109
{txt}{space 11}agesq {c |}{col 18}{res}{space 2} .0001371{col 30}{space 2} .0000397{col 41}{space 1}    3.45{col 50}{space 3}0.001{col 58}{space 4} .0000593{col 71}{space 3} .0002149
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2}-.2477755{col 30}{space 2} .1661859{col 41}{space 1}   -1.49{col 50}{space 3}0.136{col 58}{space 4}-.5734939{col 71}{space 3} .0779429
{txt}{space 14}3  {c |}{col 18}{res}{space 2}-.1424173{col 30}{space 2} .1556406{col 41}{space 1}   -0.92{col 50}{space 3}0.360{col 58}{space 4}-.4474673{col 71}{space 3} .1626327
{txt}{space 14}4  {c |}{col 18}{res}{space 2}-.1024072{col 30}{space 2} .1556591{col 41}{space 1}   -0.66{col 50}{space 3}0.511{col 58}{space 4}-.4074933{col 71}{space 3}  .202679
{txt}{space 14}5  {c |}{col 18}{res}{space 2} -.086028{col 30}{space 2} .1568933{col 41}{space 1}   -0.55{col 50}{space 3}0.583{col 58}{space 4}-.3935332{col 71}{space 3} .2214771
{txt}{space 14}6  {c |}{col 18}{res}{space 2}-.0237413{col 30}{space 2} .1559027{col 41}{space 1}   -0.15{col 50}{space 3}0.879{col 58}{space 4} -.329305{col 71}{space 3} .2818224
{txt}{space 14}7  {c |}{col 18}{res}{space 2} .0268648{col 30}{space 2} .1569958{col 41}{space 1}    0.17{col 50}{space 3}0.864{col 58}{space 4}-.2808414{col 71}{space 3}  .334571
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2}-.1016677{col 30}{space 2} .0330444{col 41}{space 1}   -3.08{col 50}{space 3}0.002{col 58}{space 4}-.1664336{col 71}{space 3}-.0369019
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .7585708{col 30}{space 2} .0393898{col 41}{space 1}   19.26{col 50}{space 3}0.000{col 58}{space 4} .6813682{col 71}{space 3} .8357733
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-1.309163{col 30}{space 2} .1800809{col 58}{space 4}-1.662116{col 71}{space 3}-.9562114
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-.3586478{col 30}{space 2}  .180268{col 58}{space 4}-.7119666{col 71}{space 3}-.0053289
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}  .888659{col 30}{space 2} .1806266{col 58}{space 4} .5346373{col 71}{space 3} 1.242681
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(i.ethnicity) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:14,273}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.ethnicity 3.ethnicity 4.ethnicity}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 11:1.ethnicity} = {res:{ralign 8:.3059393}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:2.ethnicity} = {res:{ralign 8:.2007529}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:3.ethnicity} = {res:{ralign 8:.2860513}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:4.ethnicity} = {res:{ralign 8:.2072566}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:gender} = {res:{ralign 8:1.53382}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:age} = {res:{ralign 8:46.46029}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:agesq} = {res:{ralign 8:2445.916}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:1.education} = {res:{ralign 8:.009049}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:2.education} = {res:{ralign 8:.0417963}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:3.education} = {res:{ralign 8:.2942691}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:4.education} = {res:{ralign 8:.1934815}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:5.education} = {res:{ralign 8:.1107136}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:6.education} = {res:{ralign 8:.199395}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:7.education} = {res:{ralign 8:.1512955}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:unemp} = {res:{ralign 8:.1469058}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:polint} = {res:{ralign 8:.6008029}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.ethnicity {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0082275{col 26}{space 2} .0047234{col 37}{space 1}    1.74{col 46}{space 3}0.082{col 54}{space 4}-.0010301{col 67}{space 3} .0174851
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0120251{col 26}{space 2} .0068938{col 37}{space 1}    1.74{col 46}{space 3}0.081{col 54}{space 4}-.0014865{col 67}{space 3} .0255366
{txt}{space 10}3  {c |}{col 14}{res}{space 2} -.003475{col 26}{space 2} .0020457{col 37}{space 1}   -1.70{col 46}{space 3}0.089{col 54}{space 4}-.0074845{col 67}{space 3} .0005344
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0167775{col 26}{space 2}  .009597{col 37}{space 1}   -1.75{col 46}{space 3}0.080{col 54}{space 4}-.0355873{col 67}{space 3} .0020322
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0088014{col 26}{space 2} .0042742{col 37}{space 1}    2.06{col 46}{space 3}0.039{col 54}{space 4} .0004241{col 67}{space 3} .0171787
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0128241{col 26}{space 2} .0062626{col 37}{space 1}    2.05{col 46}{space 3}0.041{col 54}{space 4} .0005496{col 67}{space 3} .0250986
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0037528{col 26}{space 2} .0018193{col 37}{space 1}   -2.06{col 46}{space 3}0.039{col 54}{space 4}-.0073185{col 67}{space 3}-.0001871
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0178726{col 26}{space 2} .0087432{col 37}{space 1}   -2.04{col 46}{space 3}0.041{col 54}{space 4} -.035009{col 67}{space 3}-.0007363
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}4.ethnicity  {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0169814{col 26}{space 2} .0054535{col 37}{space 1}    3.11{col 46}{space 3}0.002{col 54}{space 4} .0062928{col 67}{space 3}   .02767
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  .023697{col 26}{space 2} .0073879{col 37}{space 1}    3.21{col 46}{space 3}0.001{col 54}{space 4}  .009217{col 67}{space 3} .0381771
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0081272{col 26}{space 2} .0028359{col 37}{space 1}   -2.87{col 46}{space 3}0.004{col 54}{space 4}-.0136854{col 67}{space 3} -.002569
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0325512{col 26}{space 2} .0100871{col 37}{space 1}   -3.23{col 46}{space 3}0.001{col 54}{space 4}-.0523216{col 67}{space 3}-.0127809
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. di %05.3f  el(r(b),1,5)
{res}0.008
{txt}
{com}. foreach x of numlist 5/16 {c -(}
{txt}  2{com}. local bc`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local sec`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`bc`x''/`sec`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`bc`x''/`sec`x'') >= 1.65 local starc`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`bc`x''/`sec`x'') >= 1.96 local starc`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`bc`x''/`sec`x'') >= 2.58 local starc`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. file open size using "${c -(}root{c )-}Output/tabA11.tex", write replace
{txt}
{com}. file write size "\begin{c -(}tabular{c )-}{c -(}lcccccc{c )-}" _n
{txt}
{com}. file write size "\toprule" _n
{txt}
{com}. file write size " &  \multicolumn{c -(}3{c )-}{c -(}c{c )-}{c -(}Without Controls:{c )-} & \multicolumn{c -(}3{c )-}{c -(}c{c )-}{c -(}With Controls:{c )-}\\" _n
{txt}
{com}. file write size " Outcome: & Latino & Black & Asian & Latino & Black & Asian" _n
{txt}
{com}. file write size "& \cline{c -(}2-7{c )-}" _n
{txt}
{com}. file write size "\midrule" _n
{txt}
{com}. file write size " No, absolutely not &" (`b5') "`star5'" " &  " (`b9') "`star9'" " &  " (`b13') "`star13'" " &  "  (`bc5') "`starc5'" " &  "  (`bc9') "`starc9'" " &  "  (`bc13') "`starc13'" "\\"_n
{txt}
{com}. file write size " &" "(" (`se5') ")" " &  " "(" (`se9') ")" " &  " "(" (`se13') ")" " &  " "(" (`sec5') ")" " &  " "(" (`sec9') ")" " &  " "(" (`sec13') ")" "\\"_n
{txt}
{com}. 
. file write size " No, probably not &" (`b6') "`star6'" " &  " (`b10') "`star10'" " &  " (`b14') "`star14'" " &  "  (`bc6') "`starc6'" " &  "  (`bc10') "`starc10'" " &  "  (`bc14') "`starc14'" "\\"_n
{txt}
{com}. file write size " &" "(" (`se6') ")" " &  " "(" (`se10') ")" " &  " "(" (`se14') ")" " &  " "(" (`sec6') ")" " &  " "(" (`sec10') ")" " &  " "(" (`sec14') ")" "\\"_n
{txt}
{com}. 
. file write size " Yes, maybe &" (`b7') "`star7'" " &  " (`b11') "`star11'" " &  " (`b15') "`star15'" " &  "  (`bc7') "`starc7'" " &  "  (`bc11') "`starc11'" " &  "  (`bc15') "`starc15'" "\\"_n
{txt}
{com}. file write size " &" "(" (`se7') ")" " &  " "(" (`se11') ")" " &  " "(" (`se15') ")" " &  " "(" (`sec7') ")" " &  " "(" (`sec11') ")" " &  " "(" (`sec15') ")" "\\"_n
{txt}
{com}. 
. file write size " Yes, absolutely &" (`b8') "`star8'" " &  " (`b12') "`star12'" " &  " (`b16') "`star16'" " &  "  (`bc8') "`starc8'" " &  "  (`bc12') "`starc12'" " &  "  (`bc16') "`starc16'" "\\"_n
{txt}
{com}. file write size " &" "(" (`se8') ")" " &  " "(" (`se12') ")" " &  " "(" (`se16') ")" " &  " "(" (`sec8') ")" " &  " "(" (`sec12') ")" " &  " "(" (`sec16') ")" "\\"_n
{txt}
{com}. 
. file write size "\midrule" _n
{txt}
{com}. file write size "\bottomrule" _n
{txt}
{com}. file write size "\end{c -(}tabular{c )-}"
{txt}
{com}. file close size
{txt}
{com}. 
. *End US Survey 2021
. 
. *Swedish Survey 2017
. 
. use "$root/Data/scb2017.dta", clear 
{txt}
{com}. 
. *Data preparation
. 
. gen immitri=1 if f49_01==1 
{txt}(1,824 missing values generated)

{com}. replace immitri=2 if f49_01==2 | f49_01==3
{txt}(895 real changes made)

{com}. replace immitri=3 if f49_01==4 
{txt}(547 real changes made)

{com}.  
. label  define immitri 1  "Grew up in Sweden"  2 "Grew up in Europe" 3 "Grew up Outside Europe", replace
{txt}
{com}. label value immitri immitri
{txt}
{com}. 
. gen polint=.
{txt}(6,386 missing values generated)

{com}. replace polint=1 if f1==1
{txt}(2,448 real changes made)

{com}. replace polint=2/3 if  f1==2
{txt}(2,522 real changes made)

{com}. replace polint=1/3 if f1==3
{txt}(1,072 real changes made)

{com}. replace polint=0 if f1==4
{txt}(247 real changes made)

{com}. su polint

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}polint {c |}{res}      6,289     .713415    .2783382          0          1
{txt}
{com}. replace polint=`r(mean)' if polint==.
{txt}(97 real changes made)

{com}. 
. gen birthyear = real(substr(string(fodarman),1,4))
{txt}
{com}. gen birthmonth = real(substr(string(fodarman),5,2))
{txt}
{com}. gen age = .
{txt}(6,386 missing values generated)

{com}. replace age = 2017 - birthyear if birthmonth < 6
{txt}(2,758 real changes made)

{com}. replace age = 2017 - birthyear - 1 if birthmonth >= 6
{txt}(3,628 real changes made)

{com}. gen agesq = age*age
{txt}
{com}. 
. gen gender=kon
{txt}
{com}. 
. gen Sun2000niva_old = .
{txt}(6,386 missing values generated)

{com}. replace Sun2000niva_old = 1 if inlist(sun2000niva_2014_1,1)
{txt}(227 real changes made)

{com}. replace Sun2000niva_old = 2 if inlist(sun2000niva_2014_1,2)
{txt}(404 real changes made)

{com}. replace Sun2000niva_old = 3 if inlist(sun2000niva_2014_2,31,32)
{txt}(1,302 real changes made)

{com}. replace Sun2000niva_old = 4 if inlist(sun2000niva_2014_2,33)
{txt}(1,100 real changes made)

{com}. replace Sun2000niva_old = 5 if inlist(sun2000niva_2014_2,41,52)
{txt}(1,254 real changes made)

{com}. replace Sun2000niva_old = 6 if inlist(sun2000niva_2014_2,53,54,55)
{txt}(1,964 real changes made)

{com}. replace Sun2000niva_old = 7 if inlist(sun2000niva_2014_1,6)
{txt}(115 real changes made)

{com}.  
. gen double yearseducation = .
{txt}(6,386 missing values generated)

{com}. replace yearseducation = 6.6  if Sun2000niva_old == .
{txt}(20 real changes made)

{com}. replace yearseducation = 7.5  if Sun2000niva_old == 1
{txt}(227 real changes made)

{com}. replace yearseducation = 9.4  if Sun2000niva_old == 2
{txt}(404 real changes made)

{com}. replace yearseducation = 11.2 if Sun2000niva_old == 3
{txt}(1,302 real changes made)

{com}. replace yearseducation = 12.4 if Sun2000niva_old == 4
{txt}(1,100 real changes made)

{com}. replace yearseducation = 14.2 if Sun2000niva_old == 5
{txt}(1,254 real changes made)

{com}. replace yearseducation = 17   if Sun2000niva_old == 6
{txt}(1,964 real changes made)

{com}. replace yearseducation = 20.4 if Sun2000niva_old == 7
{txt}(115 real changes made)

{com}. 
. gen unemp=1 if f45==4
{txt}(6,264 missing values generated)

{com}. recode unemp .=0 if f45!=.
{txt}(5,902 changes made to {bf:unemp})

{com}. sum unemp 

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}unemp {c |}{res}      6,024    .0202523    .1408739          0          1
{txt}
{com}. replace unemp=`r(mean)' if unemp==.
{txt}(362 real changes made)

{com}. 
. tab r30

  {txt}Would feel welcome in {c |}
       local parliament {c |}      Freq.     Percent        Cum.
{hline 24}{c +}{hline 35}
            Ja, absolut {c |}{res}        654       22.63       22.63
{txt}             Ja, kanske {c |}{res}      1,315       45.50       68.13
{txt}     Nej, troligen inte {c |}{res}        247        8.55       76.68
{txt}      Nej, absolut inte {c |}{res}         83        2.87       79.55
{txt}Ingen åsikt/ej aktuellt {c |}{res}        591       20.45      100.00
{txt}{hline 24}{c +}{hline 35}
                  Total {c |}{res}      2,890      100.00
{txt}
{com}. tab p27

  {txt}Would feel welcome in {c |}
       local parliament {c |}      Freq.     Percent        Cum.
{hline 24}{c +}{hline 35}
            Ja, absolut {c |}{res}      1,746       51.13       51.13
{txt}             Ja, kanske {c |}{res}      1,148       33.62       84.74
{txt}     Nej, troligen inte {c |}{res}        265        7.76       92.50
{txt}      Nej, absolut inte {c |}{res}         40        1.17       93.67
{txt}Ingen åsikt/ej aktuellt {c |}{res}        216        6.33      100.00
{txt}{hline 24}{c +}{hline 35}
                  Total {c |}{res}      3,415      100.00
{txt}
{com}. gen welcome_parliament = .
{txt}(6,386 missing values generated)

{com}. replace welcome_parliament = 4 if r30 == 1 | p27 == 1
{txt}(2,400 real changes made)

{com}. replace welcome_parliament = 3 if r30 == 2 | p27 == 2
{txt}(2,463 real changes made)

{com}. replace welcome_parliament = 2 if r30 == 3 | p27 == 3
{txt}(512 real changes made)

{com}. replace welcome_parliament = 1 if r30 == 4 | p27 == 4
{txt}(123 real changes made)

{com}. su welcome

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
welcome_pa~t {c |}{res}      5,498    3.298654     .728036          1          4
{txt}
{com}. 
. gen welcome=1 if welcome_parliament==4
{txt}(3,986 missing values generated)

{com}. recode welcome .=0
{txt}(3,986 changes made to {bf:welcome})

{com}. 
. keep if stratum<4
{txt}(3,455 observations deleted)

{com}. 
. tab welcome immitri, col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
   welcome {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res}     1,450        332        208 {txt}{c |}{res}     1,990 
           {txt}{c |}{res}     74.44      80.78      88.51 {txt}{c |}{res}     76.72 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res}       498         79         27 {txt}{c |}{res}       604 
           {txt}{c |}{res}     25.56      19.22      11.49 {txt}{c |}{res}     23.28 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}     1,948        411        235 {txt}{c |}{res}     2,594 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. tab welcome immitri  [aw=wkNEW], col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
   welcome {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res} 1,732.035  134.73135  115.27434 {txt}{c |}{res} 1,982.041 
           {txt}{c |}{res}     75.46      81.60      86.33 {txt}{c |}{res}     76.41 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res} 563.33621  30.375181  18.247462 {txt}{c |}{res} 611.95885 
           {txt}{c |}{res}     24.54      18.40      13.67 {txt}{c |}{res}     23.59 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res} 2,295.372  165.10653   133.5218 {txt}{c |}{res}     2,594 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. ***Figure 1 (Upper right panel)***
. 
. splitvallabels immitri , length(9)
{txt}
{com}. 
. graph bar (mean) welcome [aw=wkNEW], over(immitri, relabel(`r(relabel)')  label(labsize(small))) ytitle("")scheme(s2mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
> graphregion(margin(large))  ///
> title("Swedish Survey 2017")
{res}{txt}
{com}. 
.   graph save "${c -(}root{c )-}Output/fig1swe2017.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1swe2017.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig1swe2017.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1swe2017.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. 
. ***Figure 2 (Upper right panel)***
. 
. reg welcome i.immitri [aw=wkNEW], robust
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(2, 2591)        =  {res}     8.11
                                                {txt}Prob > F          = {res}    0.0003
                                                {txt}R-squared         = {res}    0.0042
                                                {txt}Root MSE          =    {res} .42392

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0614494{col 30}{space 2} .0258731{col 41}{space 1}   -2.38{col 50}{space 3}0.018{col 58}{space 4}-.1121836{col 71}{space 3}-.0107153
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.1087599{col 30}{space 2} .0298918{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.1673741{col 71}{space 3}-.0501457
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .2454227{col 30}{space 2} .0120122{col 41}{space 1}   20.43{col 50}{space 3}0.000{col 58}{space 4} .2218681{col 71}{space 3} .2689772
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.immitri 3.immitri) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.2 0)) xlabel(-0.2(0.1) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(Swedish Survey 2017) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/fig2swe2017.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2swe2017.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig2swe2017.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2swe2017.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Figure A1 (Upper right panel)***
. 
. 
. gen jaabsolut=.
{txt}(2,931 missing values generated)

{com}. gen jakanske=.
{txt}(2,931 missing values generated)

{com}. gen nejtroligen=.
{txt}(2,931 missing values generated)

{com}. gen nejabsolut=.
{txt}(2,931 missing values generated)

{com}. 
. replace jaabsolut=1 if r30==1 
{txt}(654 real changes made)

{com}. replace jaabsolut=0 if r30==2 | r30==3 | r30==4
{txt}(1,645 real changes made)

{com}. 
. replace jakanske=1 if r30==2
{txt}(1,315 real changes made)

{com}. replace jakanske=0 if r30==1 | r30==3 | r30==4
{txt}(984 real changes made)

{com}.  
. replace nejtroligen=1 if r30==3
{txt}(247 real changes made)

{com}. replace nejtroligen=0 if r30==1 | r30==2 | r30==4
{txt}(2,052 real changes made)

{com}. 
. replace nejabsolut=1 if r30==4
{txt}(83 real changes made)

{com}. replace nejabsolut=0 if r30==1 | r30==2 | r30==3
{txt}(2,216 real changes made)

{com}.   
. splitvallabels immitri , length(9)  
{txt}
{com}. 
. graph bar (mean) jaabsolut jakanske nejtroligen nejabsolut, over(immitri, relabel(`r(relabel)')  label(labsize(small))) ytitle("")scheme(s1mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
>  graphregion(margin(large))  stack legend(order(1 "Yes, absolutely" 2 "Yes, maybe" 3 "No, probably not" 4 "No, absolutely not")) ///
>  title("Swedish Survey 2017")
{res}{txt}
{com}. 
.  graph save "${c -(}root{c )-}Output/figA1swe2017.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1swe2017.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA1swe2017.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1swe2017.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Figure A.2  (Upper right panel)***
. 
. global controls gender age agesq yearseducation unemp polint
{txt}
{com}. 
. reg welcome i.immitri $controls [aw=wkNEW], robust
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(8, 2585)        =  {res}     9.62
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0386
                                                {txt}Root MSE          =    {res} .41702

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0661937{col 30}{space 2} .0262545{col 41}{space 1}   -2.52{col 50}{space 3}0.012{col 58}{space 4}-.1176757{col 71}{space 3}-.0147117
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.1094061{col 30}{space 2} .0310109{col 41}{space 1}   -3.53{col 50}{space 3}0.000{col 58}{space 4}-.1702149{col 71}{space 3}-.0485973
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2} .0165832{col 30}{space 2}  .021032{col 41}{space 1}    0.79{col 50}{space 3}0.430{col 58}{space 4}-.0246581{col 71}{space 3} .0578245
{txt}{space 13}age {c |}{col 18}{res}{space 2} .0148301{col 30}{space 2} .0043697{col 41}{space 1}    3.39{col 50}{space 3}0.001{col 58}{space 4} .0062615{col 71}{space 3} .0233986
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-.0001564{col 30}{space 2} .0000439{col 41}{space 1}   -3.56{col 50}{space 3}0.000{col 58}{space 4}-.0002425{col 71}{space 3}-.0000703
{txt}{space 2}yearseducation {c |}{col 18}{res}{space 2} .0079912{col 30}{space 2} .0039307{col 41}{space 1}    2.03{col 50}{space 3}0.042{col 58}{space 4} .0002836{col 71}{space 3} .0156989
{txt}{space 11}unemp {c |}{col 18}{res}{space 2} .0400878{col 30}{space 2} .0716245{col 41}{space 1}    0.56{col 50}{space 3}0.576{col 58}{space 4}-.1003594{col 71}{space 3}  .180535
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .2188634{col 30}{space 2} .0395956{col 41}{space 1}    5.53{col 50}{space 3}0.000{col 58}{space 4} .1412211{col 71}{space 3} .2965057
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.3122796{col 30}{space 2} .1090294{col 41}{space 1}   -2.86{col 50}{space 3}0.004{col 58}{space 4}-.5260734{col 71}{space 3}-.0984858
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.immitri 3.immitri) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.2 0)) xlabel(-0.2(0.1) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(Swedish Survey 2017) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/figA2swe2017.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2017.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA2swe2017.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2017.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Table A2 (first three columns)***
. 
. foreach i of num 1/9 {c -(}
{txt}  2{com}. gen member_cs_`i'=1 if r31_0`i'>1 & r31_0`i'<5 
{txt}  3{com}. {c )-}
{txt}(1,942 missing values generated)
(2,567 missing values generated)
(1,679 missing values generated)
(2,503 missing values generated)
(2,451 missing values generated)
(2,812 missing values generated)
(2,552 missing values generated)
(2,638 missing values generated)
(2,741 missing values generated)

{com}. 
. egen member_cs=rmax(member_cs_1-member_cs_9)
{txt}(790 missing values generated)

{com}. recode member_cs .=0
{txt}(790 changes made to {bf:member_cs})

{com}. 
. foreach i of num 1/9 {c -(}
{txt}  2{com}. gen active_cs_`i'=1 if r31_0`i'==4 
{txt}  3{com}. {c )-}
{txt}(2,690 missing values generated)
(2,918 missing values generated)
(2,821 missing values generated)
(2,837 missing values generated)
(2,826 missing values generated)
(2,899 missing values generated)
(2,850 missing values generated)
(2,896 missing values generated)
(2,898 missing values generated)

{com}. 
. egen active_cs=rmax(active_cs_1-active_cs_9)
{txt}(2,363 missing values generated)

{com}. recode active_cs .=0
{txt}(2,363 changes made to {bf:active_cs})

{com}. 
. gen hipolint=1 if polint==1
{txt}(2,537 missing values generated)

{com}. recode hipolint .=0
{txt}(2,537 changes made to {bf:hipolint})

{com}. 
. reg welcome i.immitri##hipolint[aw=wkNEW], robust 
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(5, 2588)        =  {res}     5.65
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0116
                                                {txt}Root MSE          =    {res} .42258

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0660077{col 30}{space 2}  .027172{col 41}{space 1}   -2.43{col 50}{space 3}0.015{col 58}{space 4}-.1192888{col 71}{space 3}-.0127266
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.0984372{col 30}{space 2} .0322913{col 41}{space 1}   -3.05{col 50}{space 3}0.002{col 58}{space 4}-.1617566{col 71}{space 3}-.0351177
{txt}{space 16} {c |}
{space 6}1.hipolint {c |}{col 18}{res}{space 2} .1134065{col 30}{space 2}  .040615{col 41}{space 1}    2.79{col 50}{space 3}0.005{col 58}{space 4} .0337653{col 71}{space 3} .1930477
{txt}{space 16} {c |}
immitri#hipolint {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2} .0548934{col 30}{space 2} .0865594{col 41}{space 1}    0.63{col 50}{space 3}0.526{col 58}{space 4}-.1148393{col 71}{space 3} .2246261
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.0941496{col 30}{space 2} .0860652{col 41}{space 1}   -1.09{col 50}{space 3}0.274{col 58}{space 4}-.2629131{col 71}{space 3}  .074614
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .2322722{col 30}{space 2} .0125392{col 41}{space 1}   18.52{col 50}{space 3}0.000{col 58}{space 4} .2076844{col 71}{space 3}   .25686
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", replace 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. reg welcome i.immitri##member_cs [aw=wkNEW], robust 
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(5, 2588)        =  {res}     4.64
                                                {txt}Prob > F          = {res}    0.0003
                                                {txt}R-squared         = {res}    0.0082
                                                {txt}Root MSE          =    {res} .42331

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0365178{col 30}{space 2} .0448104{col 41}{space 1}   -0.81{col 50}{space 3}0.415{col 58}{space 4}-.1243856{col 71}{space 3}   .05135
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.0831838{col 30}{space 2} .0450452{col 41}{space 1}   -1.85{col 50}{space 3}0.065{col 58}{space 4}-.1715121{col 71}{space 3} .0051445
{txt}{space 16} {c |}
{space 5}1.member_cs {c |}{col 18}{res}{space 2} .0645901{col 30}{space 2} .0274639{col 41}{space 1}    2.35{col 50}{space 3}0.019{col 58}{space 4} .0107367{col 71}{space 3} .1184435
{txt}{space 16} {c |}
{space 9}immitri#{c |}
{space 7}member_cs {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.0242539{col 30}{space 2} .0549015{col 41}{space 1}   -0.44{col 50}{space 3}0.659{col 58}{space 4}-.1319091{col 71}{space 3} .0834014
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.0218031{col 30}{space 2} .0608795{col 41}{space 1}   -0.36{col 50}{space 3}0.720{col 58}{space 4}-.1411806{col 71}{space 3} .0975744
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .1963848{col 30}{space 2} .0236869{col 41}{space 1}    8.29{col 50}{space 3}0.000{col 58}{space 4} .1499377{col 71}{space 3}  .242832
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", append
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. reg welcome i.immitri##active_cs [aw=wkNEW], robust 
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(5, 2588)        =  {res}     6.57
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0091
                                                {txt}Root MSE          =    {res} .42312

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0526967{col 30}{space 2}   .02837{col 41}{space 1}   -1.86{col 50}{space 3}0.063{col 58}{space 4}-.1083268{col 71}{space 3} .0029334
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.0862207{col 30}{space 2} .0323251{col 41}{space 1}   -2.67{col 50}{space 3}0.008{col 58}{space 4}-.1496063{col 71}{space 3}-.0228351
{txt}{space 16} {c |}
{space 5}1.active_cs {c |}{col 18}{res}{space 2} .0768936{col 30}{space 2} .0312368{col 41}{space 1}    2.46{col 50}{space 3}0.014{col 58}{space 4} .0156419{col 71}{space 3} .1381454
{txt}{space 16} {c |}
{space 9}immitri#{c |}
{space 7}active_cs {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.0366203{col 30}{space 2} .0694317{col 41}{space 1}   -0.53{col 50}{space 3}0.598{col 58}{space 4}-.1727677{col 71}{space 3} .0995271
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.1609469{col 30}{space 2} .0608138{col 41}{space 1}   -2.65{col 50}{space 3}0.008{col 58}{space 4}-.2801956{col 71}{space 3}-.0416982
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2}   .22992{col 30}{space 2} .0132064{col 41}{space 1}   17.41{col 50}{space 3}0.000{col 58}{space 4} .2040238{col 71}{space 3} .2558162
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", append 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. 
. ***Table A.3  (columns three to four)***
. 
. gen willingdum=1 if r26==1 | r26==2
{txt}(1,951 missing values generated)

{com}. replace willingdum=0 if r26==3 | r26==4
{txt}(1,928 real changes made)

{com}. 
. reg willingdum welcome [aw=wkNEW], robust 
{txt}(sum of wgt is 6,528,262.0716196)

Linear regression                               Number of obs     = {res}     2,908
                                                {txt}F(1, 2906)        =  {res}    40.58
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0256
                                                {txt}Root MSE          =    {res}  .4624

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .1784677{col 26}{space 2} .0280169{col 37}{space 1}    6.37{col 46}{space 3}0.000{col 54}{space 4} .1235328{col 67}{space 3} .2334027
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2839854{col 26}{space 2}  .012374{col 37}{space 1}   22.95{col 46}{space 3}0.000{col 54}{space 4} .2597227{col 67}{space 3} .3082481
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", append  keep(welcome)
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. reg willingdum welcome $controls [aw=wkNEW], robust 
{txt}(sum of wgt is 6,528,262.0716196)

Linear regression                               Number of obs     = {res}     2,908
                                                {txt}F(7, 2900)        =  {res}    60.11
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1692
                                                {txt}Root MSE          =    {res} .42742

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}    willingdum{col 16}{c |} Coefficient{col 28}  std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}welcome {c |}{col 16}{res}{space 2} .1132124{col 28}{space 2} .0276878{col 39}{space 1}    4.09{col 48}{space 3}0.000{col 56}{space 4} .0589227{col 69}{space 3} .1675021
{txt}{space 8}gender {c |}{col 16}{res}{space 2}-.0248652{col 28}{space 2} .0207703{col 39}{space 1}   -1.20{col 48}{space 3}0.231{col 56}{space 4}-.0655913{col 69}{space 3} .0158609
{txt}{space 11}age {c |}{col 16}{res}{space 2} .0016073{col 28}{space 2} .0044986{col 39}{space 1}    0.36{col 48}{space 3}0.721{col 56}{space 4}-.0072135{col 69}{space 3}  .010428
{txt}{space 9}agesq {c |}{col 16}{res}{space 2}-.0000765{col 28}{space 2} .0000442{col 39}{space 1}   -1.73{col 48}{space 3}0.084{col 56}{space 4}-.0001631{col 69}{space 3} .0000102
{txt}yearseducation {c |}{col 16}{res}{space 2} .0078539{col 28}{space 2} .0037988{col 39}{space 1}    2.07{col 48}{space 3}0.039{col 56}{space 4} .0004052{col 69}{space 3} .0153025
{txt}{space 9}unemp {c |}{col 16}{res}{space 2}-.0049542{col 28}{space 2} .0759783{col 39}{space 1}   -0.07{col 48}{space 3}0.948{col 56}{space 4}-.1539311{col 69}{space 3} .1440227
{txt}{space 8}polint {c |}{col 16}{res}{space 2} .5291636{col 28}{space 2}  .038397{col 39}{space 1}   13.78{col 48}{space 3}0.000{col 56}{space 4} .4538754{col 69}{space 3} .6044517
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}  .072063{col 28}{space 2} .1192718{col 39}{space 1}    0.60{col 48}{space 3}0.546{col 56}{space 4}-.1618031{col 69}{space 3}  .305929
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", append   keep(welcome)
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. 
. ***Table A.7 ***
. 
. reg welcome i.immitri [aw=wkNEW], robust 
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(2, 2591)        =  {res}     8.11
                                                {txt}Prob > F          = {res}    0.0003
                                                {txt}R-squared         = {res}    0.0042
                                                {txt}Root MSE          =    {res} .42392

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0614494{col 30}{space 2} .0258731{col 41}{space 1}   -2.38{col 50}{space 3}0.018{col 58}{space 4}-.1121836{col 71}{space 3}-.0107153
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.1087599{col 30}{space 2} .0298918{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.1673741{col 71}{space 3}-.0501457
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .2454227{col 30}{space 2} .0120122{col 41}{space 1}   20.43{col 50}{space 3}0.000{col 58}{space 4} .2218681{col 71}{space 3} .2689772
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA7.tex", replace  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.txt""':seeout}

{com}. reg welcome i.immitri $controls [aw=wkNEW] , robust 
{txt}(sum of wgt is 5,872,861.1060174)

Linear regression                               Number of obs     = {res}     2,594
                                                {txt}F(8, 2585)        =  {res}     9.62
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0386
                                                {txt}Root MSE          =    {res} .41702

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}         welcome{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.0661937{col 30}{space 2} .0262545{col 41}{space 1}   -2.52{col 50}{space 3}0.012{col 58}{space 4}-.1176757{col 71}{space 3}-.0147117
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.1094061{col 30}{space 2} .0310109{col 41}{space 1}   -3.53{col 50}{space 3}0.000{col 58}{space 4}-.1702149{col 71}{space 3}-.0485973
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2} .0165832{col 30}{space 2}  .021032{col 41}{space 1}    0.79{col 50}{space 3}0.430{col 58}{space 4}-.0246581{col 71}{space 3} .0578245
{txt}{space 13}age {c |}{col 18}{res}{space 2} .0148301{col 30}{space 2} .0043697{col 41}{space 1}    3.39{col 50}{space 3}0.001{col 58}{space 4} .0062615{col 71}{space 3} .0233986
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-.0001564{col 30}{space 2} .0000439{col 41}{space 1}   -3.56{col 50}{space 3}0.000{col 58}{space 4}-.0002425{col 71}{space 3}-.0000703
{txt}{space 2}yearseducation {c |}{col 18}{res}{space 2} .0079912{col 30}{space 2} .0039307{col 41}{space 1}    2.03{col 50}{space 3}0.042{col 58}{space 4} .0002836{col 71}{space 3} .0156989
{txt}{space 11}unemp {c |}{col 18}{res}{space 2} .0400878{col 30}{space 2} .0716245{col 41}{space 1}    0.56{col 50}{space 3}0.576{col 58}{space 4}-.1003594{col 71}{space 3}  .180535
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .2188634{col 30}{space 2} .0395956{col 41}{space 1}    5.53{col 50}{space 3}0.000{col 58}{space 4} .1412211{col 71}{space 3} .2965057
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.3122796{col 30}{space 2} .1090294{col 41}{space 1}   -2.86{col 50}{space 3}0.004{col 58}{space 4}-.5260734{col 71}{space 3}-.0984858
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA7.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA7.txt""':seeout}

{com}. 
. ***Table A.10 (first two columns) ***
. 
. oprobit welcome_parliament i.immitri [aw=wkNEW], robust 

{txt}(sum of wgt is 4,660,512.3692673)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2053.7969}  
Iteration 1:{space 3}log pseudolikelihood = {res:-2039.3235}  
Iteration 2:{space 3}log pseudolikelihood = {res:-2039.3201}  
Iteration 3:{space 3}log pseudolikelihood = {res:-2039.3201}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:2,057}
{txt}{col 57}{lalign 13:Wald chi2({res:2})}{col 70} = {res}{ralign 6:28.99}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-2039.3201}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.9996}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.2670337{col 30}{space 2} .0902399{col 41}{space 1}   -2.96{col 50}{space 3}0.003{col 58}{space 4}-.4439007{col 71}{space 3}-.0901667
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.5489833{col 30}{space 2} .1134527{col 41}{space 1}   -4.84{col 50}{space 3}0.000{col 58}{space 4}-.7713466{col 71}{space 3}-.3266201
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.012543{col 30}{space 2}  .077317{col 58}{space 4}-2.164081{col 71}{space 3}-1.861004
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.211547{col 30}{space 2} .0493451{col 58}{space 4}-1.308261{col 71}{space 3}-1.114832
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} .4939023{col 30}{space 2}  .039898{col 58}{space 4} .4157037{col 71}{space 3}  .572101
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA10.tex", keep(i.immitri) replace  addtext(Controls, No) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.txt""':seeout}

{com}. oprobit welcome_parliament i.immitri $controls [aw=wkNEW] , robust 

{txt}(sum of wgt is 4,660,512.3692673)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2053.7969}  
Iteration 1:{space 3}log pseudolikelihood = {res:-2016.5306}  
Iteration 2:{space 3}log pseudolikelihood = {res:-2016.5074}  
Iteration 3:{space 3}log pseudolikelihood = {res:-2016.5074}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:2,057}
{txt}{col 57}{lalign 13:Wald chi2({res:8})}{col 70} = {res}{ralign 6:49.85}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-2016.5074}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.9996}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.2941025{col 30}{space 2} .0919173{col 41}{space 1}   -3.20{col 50}{space 3}0.001{col 58}{space 4}-.4742571{col 71}{space 3} -.113948
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.5391663{col 30}{space 2} .1187737{col 41}{space 1}   -4.54{col 50}{space 3}0.000{col 58}{space 4}-.7719585{col 71}{space 3} -.306374
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2} .0720581{col 30}{space 2} .0638914{col 41}{space 1}    1.13{col 50}{space 3}0.259{col 58}{space 4}-.0531667{col 71}{space 3} .1972829
{txt}{space 13}age {c |}{col 18}{res}{space 2} .0220737{col 30}{space 2}  .013402{col 41}{space 1}    1.65{col 50}{space 3}0.100{col 58}{space 4}-.0041937{col 71}{space 3} .0483412
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-.0002231{col 30}{space 2}  .000138{col 41}{space 1}   -1.62{col 50}{space 3}0.106{col 58}{space 4}-.0004935{col 71}{space 3} .0000473
{txt}{space 2}yearseducation {c |}{col 18}{res}{space 2} .0279406{col 30}{space 2} .0116796{col 41}{space 1}    2.39{col 50}{space 3}0.017{col 58}{space 4}  .005049{col 71}{space 3} .0508323
{txt}{space 11}unemp {c |}{col 18}{res}{space 2} .0975361{col 30}{space 2} .2233848{col 41}{space 1}    0.44{col 50}{space 3}0.662{col 58}{space 4}-.3402901{col 71}{space 3} .5353623
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .4820437{col 30}{space 2} .1477645{col 41}{space 1}    3.26{col 50}{space 3}0.001{col 58}{space 4} .1924306{col 71}{space 3} .7716567
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2} -.797888{col 30}{space 2} .3250689{col 58}{space 4}-1.435011{col 71}{space 3}-.1607646
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2} .0187031{col 30}{space 2} .3297037{col 58}{space 4}-.6275043{col 71}{space 3} .6649105
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} 1.746159{col 30}{space 2} .3361247{col 58}{space 4} 1.087366{col 71}{space 3} 2.404951
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA10.tex", keep(i.immitri) append  addtext(Controls, Yes) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.txt""':seeout}

{com}. 
. ***Table A.12 ***
. 
. oprobit welcome_parliament i.immitri [aw=wkNEW], robust 

{txt}(sum of wgt is 4,660,512.3692673)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2053.7969}  
Iteration 1:{space 3}log pseudolikelihood = {res:-2039.3235}  
Iteration 2:{space 3}log pseudolikelihood = {res:-2039.3201}  
Iteration 3:{space 3}log pseudolikelihood = {res:-2039.3201}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:2,057}
{txt}{col 57}{lalign 13:Wald chi2({res:2})}{col 70} = {res}{ralign 6:28.99}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-2039.3201}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.9996}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.2670337{col 30}{space 2} .0902399{col 41}{space 1}   -2.96{col 50}{space 3}0.003{col 58}{space 4}-.4439007{col 71}{space 3}-.0901667
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.5489833{col 30}{space 2} .1134527{col 41}{space 1}   -4.84{col 50}{space 3}0.000{col 58}{space 4}-.7713466{col 71}{space 3}-.3266201
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.012543{col 30}{space 2}  .077317{col 58}{space 4}-2.164081{col 71}{space 3}-1.861004
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.211547{col 30}{space 2} .0493451{col 58}{space 4}-1.308261{col 71}{space 3}-1.114832
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} .4939023{col 30}{space 2}  .039898{col 58}{space 4} .4157037{col 71}{space 3}  .572101
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(i.immitri) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:2,057}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.immitri 3.immitri}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 9:1.immitri} = {res:{ralign 8:.8891163}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 9:2.immitri} = {res:{ralign 8:.0611713}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 9:3.immitri} = {res:{ralign 8:.0497125}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.immitri   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0183668{col 26}{space 2} .0077276{col 37}{space 1}    2.38{col 46}{space 3}0.017{col 54}{space 4} .0032209{col 67}{space 3} .0335126
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  .041244{col 26}{space 2} .0150884{col 37}{space 1}    2.73{col 46}{space 3}0.006{col 54}{space 4} .0116713{col 67}{space 3} .0708167
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0277291{col 26}{space 2} .0068726{col 37}{space 1}    4.03{col 46}{space 3}0.000{col 54}{space 4} .0142591{col 67}{space 3} .0411992
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0873399{col 26}{space 2} .0277218{col 37}{space 1}   -3.15{col 46}{space 3}0.002{col 54}{space 4}-.1416736{col 67}{space 3}-.0330062
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0495758{col 26}{space 2} .0154368{col 37}{space 1}    3.21{col 46}{space 3}0.001{col 54}{space 4} .0193203{col 67}{space 3} .0798314
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0913863{col 26}{space 2} .0214097{col 37}{space 1}    4.27{col 46}{space 3}0.000{col 54}{space 4} .0494242{col 67}{space 3} .1333485
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0212248{col 26}{space 2} .0112132{col 37}{space 1}    1.89{col 46}{space 3}0.058{col 54}{space 4}-.0007526{col 67}{space 3} .0432022
{txt}{space 10}4  {c |}{col 14}{res}{space 2} -.162187{col 26}{space 2}  .027727{col 37}{space 1}   -5.85{col 46}{space 3}0.000{col 54}{space 4}-.2165309{col 67}{space 3} -.107843
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. di %05.3f  el(r(b),1,5)
{res}0.018
{txt}
{com}. foreach x of numlist 5/12 {c -(}
{txt}  2{com}. local b`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local se`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`b`x''/`se`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`b`x''/`se`x'') >= 1.65 local star`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`b`x''/`se`x'') >= 1.96 local star`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`b`x''/`se`x'') >= 2.58 local star`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. oprobit welcome_parliament i.immitri $controls [aw=wkNEW] , robust 

{txt}(sum of wgt is 4,660,512.3692673)
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2053.7969}  
Iteration 1:{space 3}log pseudolikelihood = {res:-2016.5306}  
Iteration 2:{space 3}log pseudolikelihood = {res:-2016.5074}  
Iteration 3:{space 3}log pseudolikelihood = {res:-2016.5074}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:2,057}
{txt}{col 57}{lalign 13:Wald chi2({res:8})}{col 70} = {res}{ralign 6:49.85}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-2016.5074}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.9996}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.2941025{col 30}{space 2} .0919173{col 41}{space 1}   -3.20{col 50}{space 3}0.001{col 58}{space 4}-.4742571{col 71}{space 3} -.113948
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.5391663{col 30}{space 2} .1187737{col 41}{space 1}   -4.54{col 50}{space 3}0.000{col 58}{space 4}-.7719585{col 71}{space 3} -.306374
{txt}{space 16} {c |}
{space 10}gender {c |}{col 18}{res}{space 2} .0720581{col 30}{space 2} .0638914{col 41}{space 1}    1.13{col 50}{space 3}0.259{col 58}{space 4}-.0531667{col 71}{space 3} .1972829
{txt}{space 13}age {c |}{col 18}{res}{space 2} .0220737{col 30}{space 2}  .013402{col 41}{space 1}    1.65{col 50}{space 3}0.100{col 58}{space 4}-.0041937{col 71}{space 3} .0483412
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-.0002231{col 30}{space 2}  .000138{col 41}{space 1}   -1.62{col 50}{space 3}0.106{col 58}{space 4}-.0004935{col 71}{space 3} .0000473
{txt}{space 2}yearseducation {c |}{col 18}{res}{space 2} .0279406{col 30}{space 2} .0116796{col 41}{space 1}    2.39{col 50}{space 3}0.017{col 58}{space 4}  .005049{col 71}{space 3} .0508323
{txt}{space 11}unemp {c |}{col 18}{res}{space 2} .0975361{col 30}{space 2} .2233848{col 41}{space 1}    0.44{col 50}{space 3}0.662{col 58}{space 4}-.3402901{col 71}{space 3} .5353623
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .4820437{col 30}{space 2} .1477645{col 41}{space 1}    3.26{col 50}{space 3}0.001{col 58}{space 4} .1924306{col 71}{space 3} .7716567
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2} -.797888{col 30}{space 2} .3250689{col 58}{space 4}-1.435011{col 71}{space 3}-.1607646
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2} .0187031{col 30}{space 2} .3297037{col 58}{space 4}-.6275043{col 71}{space 3} .6649105
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2} 1.746159{col 30}{space 2} .3361247{col 58}{space 4} 1.087366{col 71}{space 3} 2.404951
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. margins, dydx(i.immitri) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:2,057}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.immitri 3.immitri}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 14:1.immitri} = {res:{ralign 8:.8891163}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:2.immitri} = {res:{ralign 8:.0611713}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:3.immitri} = {res:{ralign 8:.0497125}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:gender} = {res:{ralign 8:1.481389}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:age} = {res:{ralign 8:46.6105}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:agesq} = {res:{ralign 8:2417.634}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:yearseducation} = {res:{ralign 8:13.23065}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:unemp} = {res:{ralign 8:.0288136}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 14:polint} = {res:{ralign 8:.5754539}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.immitri   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0195903{col 26}{space 2} .0077833{col 37}{space 1}    2.52{col 46}{space 3}0.012{col 54}{space 4} .0043353{col 67}{space 3} .0348453
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0459043{col 26}{space 2} .0157261{col 37}{space 1}    2.92{col 46}{space 3}0.004{col 54}{space 4} .0150817{col 67}{space 3}  .076727
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0294738{col 26}{space 2} .0065889{col 37}{space 1}    4.47{col 46}{space 3}0.000{col 54}{space 4} .0165599{col 67}{space 3} .0423878
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0949684{col 26}{space 2} .0275799{col 37}{space 1}   -3.44{col 46}{space 3}0.001{col 54}{space 4} -.149024{col 67}{space 3}-.0409129
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0457046{col 26}{space 2} .0149609{col 37}{space 1}    3.05{col 46}{space 3}0.002{col 54}{space 4} .0163818{col 67}{space 3} .0750273
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0901076{col 26}{space 2} .0225906{col 37}{space 1}    3.99{col 46}{space 3}0.000{col 54}{space 4}  .045831{col 67}{space 3} .1343843
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0233592{col 26}{space 2} .0107856{col 37}{space 1}    2.17{col 46}{space 3}0.030{col 54}{space 4} .0022198{col 67}{space 3} .0444987
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.1591714{col 26}{space 2} .0290884{col 37}{space 1}   -5.47{col 46}{space 3}0.000{col 54}{space 4}-.2161836{col 67}{space 3}-.1021592
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. foreach x of numlist 5/12 {c -(}
{txt}  2{com}. local bc`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local sec`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`bc`x''/`sec`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`bc`x''/`sec`x'') >= 1.65 local starc`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`bc`x''/`sec`x'') >= 1.96 local starc`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`bc`x''/`sec`x'') >= 2.58 local starc`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. file open size using "${c -(}root{c )-}Output/tabA12.tex", write replace
{txt}
{com}. file write size "\begin{c -(}tabular{c )-}{c -(}lcccc{c )-}" _n
{txt}
{com}. file write size "\toprule" _n
{txt}
{com}. file write size " &  \multicolumn{c -(}2{c )-}{c -(}c{c )-}{c -(}Without Controls:{c )-} & \multicolumn{c -(}2{c )-}{c -(}c{c )-}{c -(}With Controls:{c )-}\\" _n
{txt}
{com}. file write size "  & Grew Up & Grew Up  & Grew Up & Grew Up \\" _n
{txt}
{com}. file write size " Outcome: & in Europe & Outside Europe & in Europe & Outside Europe" _n
{txt}
{com}. 
. file write size "& \cline{c -(}2-5{c )-}" _n
{txt}
{com}. file write size "\midrule" _n
{txt}
{com}. file write size " No, absolutely not &" (`b5') "`star5'" " &  " (`b9') "`star9'" " &  " (`bc5') "`starc5'" " &  "  (`bc9') "`starc9'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se5') ")" " &  " "(" (`se9') ")" " &  " "(" (`sec5') ")" " &  " "(" (`sec9') ")"  "\\"_n
{txt}
{com}. 
. file write size " No, probably not &" (`b6') "`star6'" " &  " (`b10') "`star10'" " &  " (`bc6') "`starc6'" " &  "  (`bc10') "`starc10'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se6') ")" " &  " "(" (`se10') ")" " &  " "(" (`sec6') ")" " &  " "(" (`sec10') ")"  "\\"_n
{txt}
{com}. 
. 
. file write size " Yes, maybe &" (`b7') "`star7'" " &  " (`b11') "`star11'" " &  " (`bc7') "`starc7'" " &  "  (`bc11') "`starc11'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se7') ")" " &  " "(" (`se11') ")" " &  " "(" (`sec7') ")" " &  " "(" (`sec11') ")"  "\\"_n
{txt}
{com}. 
. 
. file write size " Yes, absolutely &" (`b8') "`star8'" " &  " (`b12') "`star12'" " &  " (`bc8') "`starc8'" " &  "  (`bc12') "`starc12'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se8') ")" " &  " "(" (`se12') ")" " &  " "(" (`sec8') ")" " &  " "(" (`sec12') ")"  "\\"_n
{txt}
{com}. 
. file write size "\midrule" _n
{txt}
{com}. file write size "\bottomrule" _n
{txt}
{com}. file write size "\end{c -(}tabular{c )-}"
{txt}
{com}. file close size
{txt}
{com}. 
. *End Swedish Survey 2017
. 
. *Swedish Survey 2021
. 
. use "$root/Data/som2021.dta", clear 
{txt}
{com}. 
. *Data preparation
. 
. gen immitri=1 if f184a<5
{txt}(1,895 missing values generated)

{com}. replace immitri=2 if f184a==5 | f184a==6
{txt}(547 real changes made)

{com}. replace immitri=3 if f184a==7
{txt}(382 real changes made)

{com}.  label  define immitri 1  "Grew up in Sweden"  2 "Grew up in Europe" 3 "Grew up Outside Europe", replace
{txt}
{com}. label value immitri immitri
{txt}
{com}. 
. gen polint=.
{txt}(11,423 missing values generated)

{com}. replace polint=1 if f22==1
{txt}(1,907 real changes made)

{com}. replace polint=0.75 if  f22==2
{txt}(5,169 real changes made)

{com}. replace polint=0.5 if f22==3
{txt}(3,402 real changes made)

{com}. replace polint=0.25 if f22==4
{txt}(723 real changes made)

{com}. replace polint=0 if f22==5
{txt}(0 real changes made)

{com}. su polint

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}polint {c |}{res}     11,201    .6843585    .2036058        .25          1
{txt}
{com}. replace polint=`r(mean)' if polint==.
{txt}(222 real changes made)

{com}. 
. gen age=alder
{txt}
{com}. gen agesq=age*age
{txt}
{com}. 
. gen education=utb
{txt}
{com}. recode education 99=.
{txt}(603 changes made to {bf:education})

{com}. sum education 

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}education {c |}{res}     10,820    2.751941    1.071189          1          4
{txt}
{com}. replace education=`r(mean)' if education==.
{txt}(603 real changes made)

{com}. replace education=round(education, 1)
{txt}(603 real changes made)

{com}. 
. 
. gen unemp=1 if f161c==1
{txt}(11,142 missing values generated)

{com}. recode unemp .=0 if f161c==0
{txt}(10,509 changes made to {bf:unemp})

{com}. sum unemp 

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}unemp {c |}{res}     10,790    .0260426    .1592695          0          1
{txt}
{com}. replace unemp= `r(mean)' if unemp==.
{txt}(633 real changes made)

{com}. 
. gen immitriabc="c" if immitri==1
{txt}(1,895 missing values generated)

{com}. replace immitriabc="d" if immitri==2
{txt}(547 real changes made)

{com}. replace immitriabc="e" if immitri==3
{txt}(382 real changes made)

{com}. 
. gen jaabsolut=.
{txt}(11,423 missing values generated)

{com}. gen jakanske=.
{txt}(11,423 missing values generated)

{com}. gen nejtroligen=.
{txt}(11,423 missing values generated)

{com}. gen nejabsolut=.
{txt}(11,423 missing values generated)

{com}. 
. foreach x in c d e {c -(}
{txt}  2{com}. replace jaabsolut=1 if f121`x'==1 & immitriabc=="`x'"
{txt}  3{com}. replace jaabsolut=0 if (f121`x'==2 | f121`x'==3 | f121`x'==4) & immitriabc=="`x'"
{txt}  4{com}. 
. {c )-}
{txt}(849 real changes made)
(443 real changes made)
(17 real changes made)
(45 real changes made)
(11 real changes made)
(29 real changes made)

{com}. 
. foreach x in c d e {c -(}
{txt}  2{com}. replace jakanske=1 if f121`x'==2 & immitriabc=="`x'"
{txt}  3{com}. replace jakanske=0 if (f121`x'==1 | f121`x'==3 | f121`x'==4) & immitriabc=="`x'"
{txt}  4{com}. {c )-}
{txt}(409 real changes made)
(883 real changes made)
(37 real changes made)
(25 real changes made)
(18 real changes made)
(22 real changes made)

{com}. 
. foreach x in c d e  {c -(}
{txt}  2{com}. replace nejtroligen=1 if f121`x'==3 & immitriabc=="`x'"
{txt}  3{com}. replace nejtroligen=0 if (f121`x'==1 | f121`x'==2 | f121`x'==4) & immitriabc=="`x'"
{txt}  4{com}. {c )-}
{txt}(29 real changes made)
(1,263 real changes made)
(8 real changes made)
(54 real changes made)
(8 real changes made)
(32 real changes made)

{com}. 
. foreach x in c d e  {c -(}
{txt}  2{com}. replace nejabsolut=1 if f121`x'==4 & immitriabc=="`x'"
{txt}  3{com}. replace nejabsolut=0 if (f121`x'==1 | f121`x'==2 | f121`x'==3) & immitriabc=="`x'"
{txt}  4{com}. {c )-}
{txt}(5 real changes made)
(1,287 real changes made)
(0 real changes made)
(62 real changes made)
(3 real changes made)
(37 real changes made)

{com}. 
. gen welcome_parliament=4 if jaabsolut==1
{txt}(10,546 missing values generated)

{com}. recode welcome_parliament .=3 if jakanske==1
{txt}(464 changes made to {bf:welcome_parliament})

{com}. recode welcome_parliament .=2 if nejtroligen==1
{txt}(45 changes made to {bf:welcome_parliament})

{com}. recode welcome_parliament .=1 if nejabsolut==1
{txt}(8 changes made to {bf:welcome_parliament})

{com}. 
. tab jaabsolut immitri, col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
 jaabsolut {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res}       443         45         29 {txt}{c |}{res}       517 
           {txt}{c |}{res}     34.29      72.58      72.50 {txt}{c |}{res}     37.09 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res}       849         17         11 {txt}{c |}{res}       877 
           {txt}{c |}{res}     65.71      27.42      27.50 {txt}{c |}{res}     62.91 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}     1,292         62         40 {txt}{c |}{res}     1,394 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. 
. ***Figure 1 (Lower panel) ***
. 
. preserve
{txt}
{com}. 
. collapse jaabsolut  jakanske nejtroligen nejabsolut, by(immitri)
{res}{txt}
{com}.  
. splitvallabels immitri , length(9)
{txt}
{com}. 
. graph bar (mean) jaabsolut, over(immitri, relabel(`r(relabel)')  label(labsize(small))) ytitle("")scheme(s2mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
>  graphregion(margin(large))  ///
>  title("Swedish Survey 2021")
{res}{txt}
{com}.  
.   graph save "${c -(}root{c )-}Output/fig1swe2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1swe2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig1swe2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig1swe2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. restore
{txt}
{com}. 
. ***Figure 2 (Lower panel) ***
. 
. reg jaabsolut i.immitri, robust

{txt}Linear regression                               Number of obs     = {res}     1,394
                                                {txt}F(2, 1391)        =  {res}    34.34
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0425
                                                {txt}Root MSE          =    {res} .47316

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.3829272{col 30}{space 2}  .058237{col 41}{space 1}   -6.58{col 50}{space 3}0.000{col 58}{space 4}-.4971691{col 71}{space 3}-.2686853
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.3821207{col 30}{space 2}  .071902{col 41}{space 1}   -5.31{col 50}{space 3}0.000{col 58}{space 4}-.5231687{col 71}{space 3}-.2410728
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .6571207{col 30}{space 2} .0132199{col 41}{space 1}   49.71{col 50}{space 3}0.000{col 58}{space 4} .6311876{col 71}{space 3} .6830539
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.immitri 3.immitri) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.7 0)) xlabel(-0.7(0.1) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(Swedish Survey 2021) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/fig2swe2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2swe2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/fig2swe2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/fig2swe2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. 
. ***Figure A1 (Lower panel)***
. 
. preserve
{txt}
{com}. 
. collapse jaabsolut  jakanske nejtroligen nejabsolut, by(immitri)
{res}{txt}
{com}.  
. splitvallabels immitri , length(9)
{txt}
{com}. 
. graph bar (mean) jaabsolut jakanske nejtroligen nejabsolut, over(immitri, relabel(`r(relabel)')  label(labsize(small))) ytitle("")scheme(s1mono)  graphregion(fcolor(white) ilcolor(white) lcolor(white))  ///
>  graphregion(margin(large))  stack legend(order(1 "Yes, absolutely" 2 "Yes, maybe" 3 "No, probably not" 4 "No, absolutely not")) ///
>  title("Swedish Survey 2021")
{res}{txt}
{com}. 
.  graph save "${c -(}root{c )-}Output/figA1swe2021.gph", replace
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1swe2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA1swe2021.eps", replace
{txt}{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA1swe2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. restore
{txt}
{com}. 
. ***Figure A2 (Lower panel) ***
. 
. global controls sex age agesq i.education unemp polint
{txt}
{com}. 
. reg jaabsolut i.immitri $controls, robust

{txt}Linear regression                               Number of obs     = {res}     1,394
                                                {txt}F(10, 1383)       =  {res}    15.91
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0906
                                                {txt}Root MSE          =    {res} .46246

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.3812826{col 30}{space 2} .0584964{col 41}{space 1}   -6.52{col 50}{space 3}0.000{col 58}{space 4} -.496034{col 71}{space 3}-.2665312
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.4070144{col 30}{space 2} .0758399{col 41}{space 1}   -5.37{col 50}{space 3}0.000{col 58}{space 4} -.555788{col 71}{space 3}-.2582407
{txt}{space 16} {c |}
{space 13}sex {c |}{col 18}{res}{space 2}-.0930795{col 30}{space 2} .0255806{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.1432605{col 71}{space 3}-.0428984
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0022025{col 30}{space 2} .0039493{col 41}{space 1}   -0.56{col 50}{space 3}0.577{col 58}{space 4}-.0099497{col 71}{space 3} .0055447
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-4.64e-06{col 30}{space 2}  .000039{col 41}{space 1}   -0.12{col 50}{space 3}0.905{col 58}{space 4}-.0000812{col 71}{space 3} .0000719
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2} .0474589{col 30}{space 2} .0442886{col 41}{space 1}    1.07{col 50}{space 3}0.284{col 58}{space 4}-.0394212{col 71}{space 3} .1343389
{txt}{space 14}3  {c |}{col 18}{res}{space 2}-.0115917{col 30}{space 2} .0473222{col 41}{space 1}   -0.24{col 50}{space 3}0.807{col 58}{space 4}-.1044227{col 71}{space 3} .0812393
{txt}{space 14}4  {c |}{col 18}{res}{space 2} .1111733{col 30}{space 2} .0457724{col 41}{space 1}    2.43{col 50}{space 3}0.015{col 58}{space 4} .0213825{col 71}{space 3} .2009641
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2}-.0077698{col 30}{space 2}  .083589{col 41}{space 1}   -0.09{col 50}{space 3}0.926{col 58}{space 4}-.1717447{col 71}{space 3}  .156205
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .3336054{col 30}{space 2} .0673215{col 41}{space 1}    4.96{col 50}{space 3}0.000{col 58}{space 4}  .201542{col 71}{space 3} .4656688
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .6488914{col 30}{space 2} .1020634{col 41}{space 1}    6.36{col 50}{space 3}0.000{col 58}{space 4} .4486756{col 71}{space 3} .8491072
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. estimates store results_1
{txt}
{com}. 
. coefplot results_1, drop(_cons) keep(2.immitri 3.immitri) ///
> graphregion(fcolor(white))  plotregion(style(none)) ///
>  graphregion(color(white)) xline(0, lcolor(grey)) xscale(range(-0.7 0)) xlabel(-0.7(0.1) 0) ///
> plotregion(lcolor(black) lwidth(thin)) legend(off) ciopts(color(black)) mcolor(black) title(Swedish Survey 2021) 
{res}{p 0 4 2}
{txt}(note:  named style
grey not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph save "${c -(}root{c )-}Output/figA2swe2021.gph", replace
{txt}{p 0 4 2}
(file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2021.gph{rm}
not found)
{p_end}
{res}{txt}file {bf:/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2021.gph} saved

{com}. graph export  "${c -(}root{c )-}Output/figA2swe2021.eps", replace
{txt}{p 0 4 2}
(file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2021.eps{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/figA2swe2021.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ***Table A2 (Last three columns)
. 
. gen member_cs=1 if f111==2 | f111==3
{txt}(8,369 missing values generated)

{com}. recode member_cs .=0 if f111<4
{txt}(3,200 changes made to {bf:member_cs})

{com}. gen active_cs=1 if f111==3
{txt}(10,723 missing values generated)

{com}. recode active_cs .=0 if f111<4
{txt}(5,554 changes made to {bf:active_cs})

{com}. 
. gen hipolint=1 if polint==1
{txt}(9,516 missing values generated)

{com}. recode hipolint .=0
{txt}(9,516 changes made to {bf:hipolint})

{com}. 
. reg jaabsolut i.immitri##hipolint, robust 

{txt}Linear regression                               Number of obs     = {res}     1,394
                                                {txt}F(5, 1388)        =  {res}    18.04
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0515
                                                {txt}Root MSE          =    {res} .47146

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.4137291{col 30}{space 2} .0615095{col 41}{space 1}   -6.73{col 50}{space 3}0.000{col 58}{space 4}-.5343907{col 71}{space 3}-.2930676
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.3604411{col 30}{space 2} .0762359{col 41}{space 1}   -4.73{col 50}{space 3}0.000{col 58}{space 4}-.5099911{col 71}{space 3}-.2108912
{txt}{space 16} {c |}
{space 6}1.hipolint {c |}{col 18}{res}{space 2} .1141175{col 30}{space 2} .0330085{col 41}{space 1}    3.46{col 50}{space 3}0.001{col 58}{space 4} .0493656{col 71}{space 3} .1788695
{txt}{space 16} {c |}
immitri#hipolint {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2} .1229311{col 30}{space 2} .1544587{col 41}{space 1}    0.80{col 50}{space 3}0.426{col 58}{space 4}-.1800665{col 71}{space 3} .4259288
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.1418953{col 30}{space 2} .2318706{col 41}{space 1}   -0.61{col 50}{space 3}0.541{col 58}{space 4}  -.59675{col 71}{space 3} .3129594
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .6382189{col 30}{space 2} .0146668{col 41}{space 1}   43.51{col 50}{space 3}0.000{col 58}{space 4} .6094475{col 71}{space 3} .6669904
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", append 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. reg jaabsolut i.immitri##member_cs, robust 

{txt}Linear regression                               Number of obs     = {res}     1,381
                                                {txt}F(5, 1375)        =  {res}    21.44
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0523
                                                {txt}Root MSE          =    {res} .47122

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.4777328{col 30}{space 2} .0610343{col 41}{space 1}   -7.83{col 50}{space 3}0.000{col 58}{space 4}-.5974631{col 71}{space 3}-.3580024
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.3901996{col 30}{space 2} .0819427{col 41}{space 1}   -4.76{col 50}{space 3}0.000{col 58}{space 4}-.5509459{col 71}{space 3}-.2294534
{txt}{space 16} {c |}
{space 5}1.member_cs {c |}{col 18}{res}{space 2} .0519073{col 30}{space 2} .0265511{col 41}{space 1}    1.95{col 50}{space 3}0.051{col 58}{space 4}-.0001777{col 71}{space 3} .1039923
{txt}{space 16} {c |}
{space 9}immitri#{c |}
{space 7}member_cs {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}  .248792{col 30}{space 2} .1240012{col 41}{space 1}    2.01{col 50}{space 3}0.045{col 58}{space 4} .0055399{col 71}{space 3} .4920441
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2} .0067134{col 30}{space 2} .1677453{col 41}{space 1}    0.04{col 50}{space 3}0.968{col 58}{space 4}-.3223509{col 71}{space 3} .3357777
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .6315789{col 30}{space 2} .0193062{col 41}{space 1}   32.71{col 50}{space 3}0.000{col 58}{space 4} .5937061{col 71}{space 3} .6694518
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", append 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. lincom 2.immitri+2.immitri#1.member_cs

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.immitri + 2.immitri#1.member_cs = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   jaabsolut{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.2289408{col 26}{space 2} .1079404{col 37}{space 1}   -2.12{col 46}{space 3}0.034{col 54}{space 4}-.4406864{col 67}{space 3}-.0171951
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. reg jaabsolut i.immitri##active_cs, robust 

{txt}Linear regression                               Number of obs     = {res}     1,381
                                                {txt}{help j_robustsingular:F(4, 1375) }       =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.0477
                                                {txt}Root MSE          =    {res} .47236

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.4132319{col 30}{space 2} .0581056{col 41}{space 1}   -7.11{col 50}{space 3}0.000{col 58}{space 4} -.527217{col 71}{space 3}-.2992468
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.3914533{col 30}{space 2} .0730094{col 41}{space 1}   -5.36{col 50}{space 3}0.000{col 58}{space 4}-.5346751{col 71}{space 3}-.2482315
{txt}{space 16} {c |}
{space 5}1.active_cs {c |}{col 18}{res}{space 2} .0253888{col 30}{space 2} .0381336{col 41}{space 1}    0.67{col 50}{space 3}0.506{col 58}{space 4}-.0494176{col 71}{space 3} .1001952
{txt}{space 16} {c |}
{space 9}immitri#{c |}
{space 7}active_cs {c |}
Grew up in Eu.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2} .3998986{col 30}{space 2} .2811093{col 41}{space 1}    1.42{col 50}{space 3}0.155{col 58}{space 4}-.1515509{col 71}{space 3}  .951348
{txt}Grew up Outsi.. #{c |}
{space 14}1  {c |}{col 18}{res}{space 2}-.2885467{col 30}{space 2} .0811124{col 41}{space 1}   -3.56{col 50}{space 3}0.000{col 58}{space 4}-.4476642{col 71}{space 3}-.1294292
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .6546112{col 30}{space 2} .0143289{col 41}{space 1}   45.68{col 50}{space 3}0.000{col 58}{space 4} .6265023{col 71}{space 3} .6827201
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA2.tex", append 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA2.txt""':seeout}

{com}. 
. ***Table A3 (Last two columns)***
. 
. gen willing=1 if f120==1
{txt}(11,279 missing values generated)

{com}. replace willing=2/3 if f120==2
{txt}(383 real changes made)

{com}. replace willing=1/3 if f120==3
{txt}(641 real changes made)

{com}. replace willing=0 if f120==4
{txt}(410 real changes made)

{com}. 
. gen willingdum=1 if f120==1 | f120==2
{txt}(10,896 missing values generated)

{com}. replace willingdum=0 if f120==3 | f120==4
{txt}(1,051 real changes made)

{com}. 
. gen welcome=jaabsolut
{txt}(10,029 missing values generated)

{com}. 
. reg willingdum welcome, robust 

{txt}Linear regression                               Number of obs     = {res}     1,386
                                                {txt}F(1, 1384)        =  {res}    13.37
                                                {txt}Prob > F          = {res}    0.0003
                                                {txt}R-squared         = {res}    0.0092
                                                {txt}Root MSE          =    {res} .47277

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .0943712{col 26}{space 2} .0258135{col 37}{space 1}    3.66{col 46}{space 3}0.000{col 54}{space 4} .0437334{col 67}{space 3} .1450091
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2832031{col 26}{space 2} .0199263{col 37}{space 1}   14.21{col 46}{space 3}0.000{col 54}{space 4} .2441142{col 67}{space 3}  .322292
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", append  keep(welcome)
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. reg willingdum welcome $controls, robust 

{txt}Linear regression                               Number of obs     = {res}     1,386
                                                {txt}F(9, 1376)        =  {res}    42.46
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1715
                                                {txt}Root MSE          =    {res} .43358

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}  willingdum{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}welcome {c |}{col 14}{res}{space 2} .0270883{col 26}{space 2} .0244319{col 37}{space 1}    1.11{col 46}{space 3}0.268{col 54}{space 4}-.0208395{col 67}{space 3} .0750161
{txt}{space 9}sex {c |}{col 14}{res}{space 2} -.010708{col 26}{space 2} .0242842{col 37}{space 1}   -0.44{col 46}{space 3}0.659{col 54}{space 4}-.0583461{col 67}{space 3}   .03693
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0000482{col 26}{space 2} .0037829{col 37}{space 1}    0.01{col 46}{space 3}0.990{col 54}{space 4}-.0073726{col 67}{space 3}  .007469
{txt}{space 7}agesq {c |}{col 14}{res}{space 2}-.0000602{col 26}{space 2} .0000364{col 37}{space 1}   -1.66{col 46}{space 3}0.098{col 54}{space 4}-.0001315{col 67}{space 3} .0000111
{txt}{space 12} {c |}
{space 3}education {c |}
{space 10}2  {c |}{col 14}{res}{space 2} .0614601{col 26}{space 2} .0354688{col 37}{space 1}    1.73{col 46}{space 3}0.083{col 54}{space 4}-.0081187{col 67}{space 3} .1310388
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0721469{col 26}{space 2} .0390836{col 37}{space 1}    1.85{col 46}{space 3}0.065{col 54}{space 4} -.004523{col 67}{space 3} .1488168
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0691467{col 26}{space 2} .0386854{col 37}{space 1}    1.79{col 46}{space 3}0.074{col 54}{space 4} -.006742{col 67}{space 3} .1450354
{txt}{space 12} {c |}
{space 7}unemp {c |}{col 14}{res}{space 2} .2258049{col 26}{space 2} .0855839{col 37}{space 1}    2.64{col 46}{space 3}0.008{col 54}{space 4}  .057916{col 67}{space 3} .3936939
{txt}{space 6}polint {c |}{col 14}{res}{space 2} .8504461{col 26}{space 2} .0603978{col 37}{space 1}   14.08{col 46}{space 3}0.000{col 54}{space 4} .7319644{col 67}{space 3} .9689278
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.1143574{col 26}{space 2} .1006387{col 37}{space 1}   -1.14{col 46}{space 3}0.256{col 54}{space 4}-.3117794{col 67}{space 3} .0830645
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA3.tex", append   keep(welcome)
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA3.txt""':seeout}

{com}. 
. ***Table A4***
. 
. 
. foreach x in c d e {c -(}
{txt}  2{com}. gen jaabsolut`x'=1 if f121`x'==1
{txt}  3{com}. replace jaabsolut`x'=0 if f121`x'==2 | f121`x'==3 | f121`x'==4 
{txt}  4{com}. {c )-}
{txt}(10,485 missing values generated)
(535 real changes made)
(10,930 missing values generated)
(970 real changes made)
(11,119 missing values generated)
(1,150 real changes made)

{com}. 
. *column 1
. 
. tab jaabsolutc immitri, matcell(freq_matrix) col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
jaabsolutc {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res}       443         28         20 {txt}{c |}{res}       491 
           {txt}{c |}{res}     34.29      42.42      47.62 {txt}{c |}{res}     35.07 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res}       849         38         22 {txt}{c |}{res}       909 
           {txt}{c |}{res}     65.71      57.58      52.38 {txt}{c |}{res}     64.93 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}     1,292         66         42 {txt}{c |}{res}     1,400 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. forval i = 1/3 {c -(}
{txt}  2{com}.     local x1`i' = round((freq_matrix[2,`i']/(freq_matrix[1,`i']+freq_matrix[2,`i'])), .01)
{txt}  3{com}. {c )-}
{txt}
{com}. 
. 
. *column 2
. 
. tab jaabsolutd immitri, matcell(freq_matrix) col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
jaabsolutd {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res}       835         45         29 {txt}{c |}{res}       909 
           {txt}{c |}{res}     64.83      72.58      74.36 {txt}{c |}{res}     65.44 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res}       453         17         10 {txt}{c |}{res}       480 
           {txt}{c |}{res}     35.17      27.42      25.64 {txt}{c |}{res}     34.56 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}     1,288         62         39 {txt}{c |}{res}     1,389 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. forval i = 1/3 {c -(}
{txt}  2{com}.     local x2`i' = round((freq_matrix[2,`i']/(freq_matrix[1,`i']+freq_matrix[2,`i'])), .01)
{txt}  3{com}. {c )-}
{txt}
{com}. 
. *column 3
. 
. tab jaabsolute immitri, matcell(freq_matrix)  col
{txt}
{c TLC}{hline 19}{c TRC}
{c |} Key{col 21}{c |}
{c LT}{hline 19}{c RT}
{c |}{space 5}{it:frequency}{col 21}{c |}
{c |}{space 1}{it:column percentage}{col 21}{c |}
{c BLC}{hline 19}{c BRC}

           {c |}             immitri
jaabsolute {c |} Grew up i  Grew up i  Grew up O {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
         0 {c |}{res}     1,005         52         29 {txt}{c |}{res}     1,086 
           {txt}{c |}{res}     78.58      83.87      72.50 {txt}{c |}{res}     78.64 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
         1 {c |}{res}       274         10         11 {txt}{c |}{res}       295 
           {txt}{c |}{res}     21.42      16.13      27.50 {txt}{c |}{res}     21.36 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}     1,279         62         40 {txt}{c |}{res}     1,381 
           {txt}{c |}{res}    100.00     100.00     100.00 {txt}{c |}{res}    100.00 
{txt}
{com}. 
. forval i = 1/3 {c -(}
{txt}  2{com}.     local x3`i' = round((freq_matrix[2,`i']/(freq_matrix[1,`i']+freq_matrix[2,`i'])), .01)
{txt}  3{com}. {c )-}
{txt}
{com}. 
. file open size using "${c -(}root{c )-}Output/tabA4.tex", write replace
{txt}
{com}. file write size "\begin{c -(}tabular{c )-}{c -(}lccc{c )-}" _n
{txt}
{com}. file write size "\toprule" _n
{txt}
{com}. file write size " &  \multicolumn{c -(}3{c )-}{c -(}c{c )-}{c -(}New politician who grew up in:{c )-} \\" _n
{txt}
{com}. file write size "& \cline{c -(}2-4{c )-}" _n
{txt}
{com}. file write size "  Respondent Group & Sweden & Europe & Outside Europe \\" _n
{txt}
{com}. file write size "\midrule" _n
{txt}
{com}. file write size " Grew Up in Sweden &" (`x11') " &  " (`x21') " &  " (`x31') "\\"_n
{txt}
{com}. file write size " Grew Up in Europe &" (`x12') " &  " (`x22') " &  " (`x32') "\\"_n
{txt}
{com}. file write size " Grew Up Outside Europe &" (`x13') " &  " (`x23') " &  " (`x33') "\\"_n
{txt}
{com}. file write size "\midrule" _n
{txt}
{com}. file write size "\bottomrule" _n
{txt}
{com}. file write size "\end{c -(}tabular{c )-}"
{txt}
{com}. file close size
{txt}
{com}. 
. ***Table A8***
. 
. reg jaabsolut i.immitri , robust 

{txt}Linear regression                               Number of obs     = {res}     1,394
                                                {txt}F(2, 1391)        =  {res}    34.34
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0425
                                                {txt}Root MSE          =    {res} .47316

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.3829272{col 30}{space 2}  .058237{col 41}{space 1}   -6.58{col 50}{space 3}0.000{col 58}{space 4}-.4971691{col 71}{space 3}-.2686853
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.3821207{col 30}{space 2}  .071902{col 41}{space 1}   -5.31{col 50}{space 3}0.000{col 58}{space 4}-.5231687{col 71}{space 3}-.2410728
{txt}{space 16} {c |}
{space 11}_cons {c |}{col 18}{res}{space 2} .6571207{col 30}{space 2} .0132199{col 41}{space 1}   49.71{col 50}{space 3}0.000{col 58}{space 4} .6311876{col 71}{space 3} .6830539
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA8.tex", replace  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.txt""':seeout}

{com}. reg jaabsolut i.immitri $controls  , robust 

{txt}Linear regression                               Number of obs     = {res}     1,394
                                                {txt}F(10, 1383)       =  {res}    15.91
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0906
                                                {txt}Root MSE          =    {res} .46246

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       jaabsolut{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.3812826{col 30}{space 2} .0584964{col 41}{space 1}   -6.52{col 50}{space 3}0.000{col 58}{space 4} -.496034{col 71}{space 3}-.2665312
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-.4070144{col 30}{space 2} .0758399{col 41}{space 1}   -5.37{col 50}{space 3}0.000{col 58}{space 4} -.555788{col 71}{space 3}-.2582407
{txt}{space 16} {c |}
{space 13}sex {c |}{col 18}{res}{space 2}-.0930795{col 30}{space 2} .0255806{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.1432605{col 71}{space 3}-.0428984
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0022025{col 30}{space 2} .0039493{col 41}{space 1}   -0.56{col 50}{space 3}0.577{col 58}{space 4}-.0099497{col 71}{space 3} .0055447
{txt}{space 11}agesq {c |}{col 18}{res}{space 2}-4.64e-06{col 30}{space 2}  .000039{col 41}{space 1}   -0.12{col 50}{space 3}0.905{col 58}{space 4}-.0000812{col 71}{space 3} .0000719
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2} .0474589{col 30}{space 2} .0442886{col 41}{space 1}    1.07{col 50}{space 3}0.284{col 58}{space 4}-.0394212{col 71}{space 3} .1343389
{txt}{space 14}3  {c |}{col 18}{res}{space 2}-.0115917{col 30}{space 2} .0473222{col 41}{space 1}   -0.24{col 50}{space 3}0.807{col 58}{space 4}-.1044227{col 71}{space 3} .0812393
{txt}{space 14}4  {c |}{col 18}{res}{space 2} .1111733{col 30}{space 2} .0457724{col 41}{space 1}    2.43{col 50}{space 3}0.015{col 58}{space 4} .0213825{col 71}{space 3} .2009641
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2}-.0077698{col 30}{space 2}  .083589{col 41}{space 1}   -0.09{col 50}{space 3}0.926{col 58}{space 4}-.1717447{col 71}{space 3}  .156205
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .3336054{col 30}{space 2} .0673215{col 41}{space 1}    4.96{col 50}{space 3}0.000{col 58}{space 4}  .201542{col 71}{space 3} .4656688
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .6488914{col 30}{space 2} .1020634{col 41}{space 1}    6.36{col 50}{space 3}0.000{col 58}{space 4} .4486756{col 71}{space 3} .8491072
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using "${c -(}root{c )-}Output/tabA8.tex", append  
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA8.txt""':seeout}

{com}. 
. 
. ***Table A10 (Last two columns)***
. 
. oprobit welcome_parliament i.immitri, robust 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1112.6276}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1074.9886}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1074.9366}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1074.9366}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:1,394}
{txt}{col 57}{lalign 13:Wald chi2({res:2})}{col 70} = {res}{ralign 6:74.94}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1074.9366}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.0339}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.8942279{col 30}{space 2} .1309681{col 41}{space 1}   -6.83{col 50}{space 3}0.000{col 58}{space 4}-1.150921{col 71}{space 3}-.6375352
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-1.173608{col 30}{space 2} .1992809{col 41}{space 1}   -5.89{col 50}{space 3}0.000{col 58}{space 4}-1.564192{col 71}{space 3} -.783025
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.753257{col 30}{space 2} .1417743{col 58}{space 4} -3.03113{col 71}{space 3}-2.475385
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.931885{col 30}{space 2} .0679448{col 58}{space 4}-2.065054{col 71}{space 3}-1.798715
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}-.4040802{col 30}{space 2}  .035711{col 58}{space 4}-.4740725{col 71}{space 3}-.3340879
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA10.tex", keep(i.immitri) append  addtext(Controls, No) 
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.txt""':seeout}

{com}. oprobit welcome_parliament i.immitri $controls, robust 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1112.6276}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1040.7397}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1040.5103}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1040.5103}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:1,394}
{txt}{col 57}{lalign 13:Wald chi2({res:10})}{col 70} = {res}{ralign 6:130.23}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1040.5103}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.0648}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.9377054{col 30}{space 2} .1388778{col 41}{space 1}   -6.75{col 50}{space 3}0.000{col 58}{space 4}-1.209901{col 71}{space 3}-.6655098
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-1.276681{col 30}{space 2} .2097527{col 41}{space 1}   -6.09{col 50}{space 3}0.000{col 58}{space 4}-1.687789{col 71}{space 3}-.8655735
{txt}{space 16} {c |}
{space 13}sex {c |}{col 18}{res}{space 2}-.2491128{col 30}{space 2} .0685253{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.3834199{col 71}{space 3}-.1148057
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0102948{col 30}{space 2} .0107707{col 41}{space 1}   -0.96{col 50}{space 3}0.339{col 58}{space 4} -.031405{col 71}{space 3} .0108154
{txt}{space 11}agesq {c |}{col 18}{res}{space 2} .0000456{col 30}{space 2} .0001046{col 41}{space 1}    0.44{col 50}{space 3}0.663{col 58}{space 4}-.0001593{col 71}{space 3} .0002505
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2} .1761598{col 30}{space 2} .1133937{col 41}{space 1}    1.55{col 50}{space 3}0.120{col 58}{space 4}-.0460877{col 71}{space 3} .3984073
{txt}{space 14}3  {c |}{col 18}{res}{space 2} .0249013{col 30}{space 2}  .117366{col 41}{space 1}    0.21{col 50}{space 3}0.832{col 58}{space 4}-.2051318{col 71}{space 3} .2549344
{txt}{space 14}4  {c |}{col 18}{res}{space 2} .3551589{col 30}{space 2} .1203598{col 41}{space 1}    2.95{col 50}{space 3}0.003{col 58}{space 4} .1192581{col 71}{space 3} .5910598
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2} .0775938{col 30}{space 2} .2143437{col 41}{space 1}    0.36{col 50}{space 3}0.717{col 58}{space 4}-.3425121{col 71}{space 3} .4976998
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .8678525{col 30}{space 2} .1935007{col 41}{space 1}    4.49{col 50}{space 3}0.000{col 58}{space 4} .4885981{col 71}{space 3} 1.247107
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.839092{col 30}{space 2} .2973567{col 58}{space 4}-3.421901{col 71}{space 3}-2.256284
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.996318{col 30}{space 2} .2904048{col 58}{space 4}-2.565501{col 71}{space 3}-1.427135
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}-.4176145{col 30}{space 2} .2842072{col 58}{space 4}-.9746504{col 71}{space 3} .1394213
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using "${c -(}root{c )-}Output/tabA10.tex", keep(i.immitri) append  addtext(Controls, Yes)
{txt}{stata `"shellout using `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex"'"':/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.tex}
{browse `"/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output"' :dir}{com} : {txt}{stata `"seeout using "/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA10.txt""':seeout}

{com}. 
. ***Table A13 (Last two columns)***
. 
. oprobit welcome_parliament i.immitri, robust 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1112.6276}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1074.9886}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1074.9366}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1074.9366}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:1,394}
{txt}{col 57}{lalign 13:Wald chi2({res:2})}{col 70} = {res}{ralign 6:74.94}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1074.9366}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.0339}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.8942279{col 30}{space 2} .1309681{col 41}{space 1}   -6.83{col 50}{space 3}0.000{col 58}{space 4}-1.150921{col 71}{space 3}-.6375352
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-1.173608{col 30}{space 2} .1992809{col 41}{space 1}   -5.89{col 50}{space 3}0.000{col 58}{space 4}-1.564192{col 71}{space 3} -.783025
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.753257{col 30}{space 2} .1417743{col 58}{space 4} -3.03113{col 71}{space 3}-2.475385
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.931885{col 30}{space 2} .0679448{col 58}{space 4}-2.065054{col 71}{space 3}-1.798715
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}-.4040802{col 30}{space 2}  .035711{col 58}{space 4}-.4740725{col 71}{space 3}-.3340879
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(i.immitri) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:1,394}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.immitri 3.immitri}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 9:1.immitri} = {res:{ralign 8:.9268293}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 9:2.immitri} = {res:{ralign 8:.0444763}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 9:3.immitri} = {res:{ralign 8:.0286944}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.immitri   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0285612{col 26}{space 2} .0106792{col 37}{space 1}    2.67{col 46}{space 3}0.007{col 54}{space 4} .0076304{col 67}{space 3}  .049492
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0944669{col 26}{space 2}  .023463{col 37}{space 1}    4.03{col 46}{space 3}0.000{col 54}{space 4} .0484802{col 67}{space 3} .1404536
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2218804{col 26}{space 2}   .02224{col 37}{space 1}    9.98{col 46}{space 3}0.000{col 54}{space 4} .1782909{col 67}{space 3} .2654699
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.3449085{col 26}{space 2}  .046441{col 37}{space 1}   -7.43{col 46}{space 3}0.000{col 54}{space 4}-.4359312{col 67}{space 3}-.2538857
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0541433{col 26}{space 2} .0248837{col 37}{space 1}    2.18{col 46}{space 3}0.030{col 54}{space 4} .0053721{col 67}{space 3} .1029146
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .1433125{col 26}{space 2} .0400111{col 37}{space 1}    3.58{col 46}{space 3}0.000{col 54}{space 4} .0648922{col 67}{space 3} .2217328
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2386773{col 26}{space 2} .0169419{col 37}{space 1}   14.09{col 46}{space 3}0.000{col 54}{space 4} .2054717{col 67}{space 3} .2718829
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.4361332{col 26}{space 2}   .05953{col 37}{space 1}   -7.33{col 46}{space 3}0.000{col 54}{space 4}-.5528098{col 67}{space 3}-.3194566
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. di %05.3f  el(r(b),1,5)
{res}0.029
{txt}
{com}. foreach x of numlist 5/12 {c -(}
{txt}  2{com}. local b`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local se`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`b`x''/`se`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`b`x''/`se`x'') >= 1.65 local star`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`b`x''/`se`x'') >= 1.96 local star`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`b`x''/`se`x'') >= 2.58 local star`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. 
. oprobit welcome_parliament i.immitri $controls, robust 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1112.6276}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1040.7397}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1040.5103}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1040.5103}  
{res}
{txt}{col 1}Ordered probit regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:1,394}
{txt}{col 57}{lalign 13:Wald chi2({res:10})}{col 70} = {res}{ralign 6:130.23}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1040.5103}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.0648}

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}welcome_parlia~t{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      z{col 50}   P>|z|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}immitri {c |}
Grew up in Eu..  {c |}{col 18}{res}{space 2}-.9377054{col 30}{space 2} .1388778{col 41}{space 1}   -6.75{col 50}{space 3}0.000{col 58}{space 4}-1.209901{col 71}{space 3}-.6655098
{txt}Grew up Outsi..  {c |}{col 18}{res}{space 2}-1.276681{col 30}{space 2} .2097527{col 41}{space 1}   -6.09{col 50}{space 3}0.000{col 58}{space 4}-1.687789{col 71}{space 3}-.8655735
{txt}{space 16} {c |}
{space 13}sex {c |}{col 18}{res}{space 2}-.2491128{col 30}{space 2} .0685253{col 41}{space 1}   -3.64{col 50}{space 3}0.000{col 58}{space 4}-.3834199{col 71}{space 3}-.1148057
{txt}{space 13}age {c |}{col 18}{res}{space 2}-.0102948{col 30}{space 2} .0107707{col 41}{space 1}   -0.96{col 50}{space 3}0.339{col 58}{space 4} -.031405{col 71}{space 3} .0108154
{txt}{space 11}agesq {c |}{col 18}{res}{space 2} .0000456{col 30}{space 2} .0001046{col 41}{space 1}    0.44{col 50}{space 3}0.663{col 58}{space 4}-.0001593{col 71}{space 3} .0002505
{txt}{space 16} {c |}
{space 7}education {c |}
{space 14}2  {c |}{col 18}{res}{space 2} .1761598{col 30}{space 2} .1133937{col 41}{space 1}    1.55{col 50}{space 3}0.120{col 58}{space 4}-.0460877{col 71}{space 3} .3984073
{txt}{space 14}3  {c |}{col 18}{res}{space 2} .0249013{col 30}{space 2}  .117366{col 41}{space 1}    0.21{col 50}{space 3}0.832{col 58}{space 4}-.2051318{col 71}{space 3} .2549344
{txt}{space 14}4  {c |}{col 18}{res}{space 2} .3551589{col 30}{space 2} .1203598{col 41}{space 1}    2.95{col 50}{space 3}0.003{col 58}{space 4} .1192581{col 71}{space 3} .5910598
{txt}{space 16} {c |}
{space 11}unemp {c |}{col 18}{res}{space 2} .0775938{col 30}{space 2} .2143437{col 41}{space 1}    0.36{col 50}{space 3}0.717{col 58}{space 4}-.3425121{col 71}{space 3} .4976998
{txt}{space 10}polint {c |}{col 18}{res}{space 2} .8678525{col 30}{space 2} .1935007{col 41}{space 1}    4.49{col 50}{space 3}0.000{col 58}{space 4} .4885981{col 71}{space 3} 1.247107
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}/cut1 {c |}{col 18}{res}{space 2}-2.839092{col 30}{space 2} .2973567{col 58}{space 4}-3.421901{col 71}{space 3}-2.256284
{txt}{space 11}/cut2 {c |}{col 18}{res}{space 2}-1.996318{col 30}{space 2} .2904048{col 58}{space 4}-2.565501{col 71}{space 3}-1.427135
{txt}{space 11}/cut3 {c |}{col 18}{res}{space 2}-.4176145{col 30}{space 2} .2842072{col 58}{space 4}-.9746504{col 71}{space 3} .1394213
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(i.immitri) atmean
{res}
{txt}{col 1}Conditional marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:1,394}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 12 12 2}{...}
{p2col:dy/dx wrt:}{res:2.immitri 3.immitri}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 13 13 2}{...}
{p2col:{txt:1._predict:}}{res:Pr(welcome_parliament==1), predict(pr outcome(1))}{p_end}
{p2col:{txt:2._predict:}}{res:Pr(welcome_parliament==2), predict(pr outcome(2))}{p_end}
{p2col:{txt:3._predict:}}{res:Pr(welcome_parliament==3), predict(pr outcome(3))}{p_end}
{p2col:{txt:4._predict:}}{res:Pr(welcome_parliament==4), predict(pr outcome(4))}{p_end}
{p2colreset}{...}

{lalign 4:At: }{space 0}{lalign 11:1.immitri} = {res:{ralign 8:.9268293}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:2.immitri} = {res:{ralign 8:.0444763}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:3.immitri} = {res:{ralign 8:.0286944}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:sex} = {res:{ralign 8:1.467719}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:age} = {res:{ralign 8:53.8056}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:agesq} = {res:{ralign 8:3220.622}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:1.education} = {res:{ralign 8:.1348637}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:2.education} = {res:{ralign 8:.2890961}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:3.education} = {res:{ralign 8:.2245337}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:4.education} = {res:{ralign 8:.3515065}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:unemp} = {res:{ralign 8:.0211584}} {txt:(mean)}
{lalign 4:}{space 0}{lalign 11:polint} = {res:{ralign 8:.686184}} {txt:(mean)}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}1.immitri   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0260237{col 26}{space 2} .0103811{col 37}{space 1}    2.51{col 46}{space 3}0.012{col 54}{space 4} .0056772{col 67}{space 3} .0463702
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .0949017{col 26}{space 2} .0247372{col 37}{space 1}    3.84{col 46}{space 3}0.000{col 54}{space 4} .0464177{col 67}{space 3} .1433857
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2395547{col 26}{space 2} .0234841{col 37}{space 1}   10.20{col 46}{space 3}0.000{col 54}{space 4} .1935267{col 67}{space 3} .2855828
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.3604801{col 26}{space 2} .0486581{col 37}{space 1}   -7.41{col 46}{space 3}0.000{col 54}{space 4}-.4558481{col 67}{space 3} -.265112
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}3.immitri    {txt}{c |}
{space 4}_predict {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .0561886{col 26}{space 2} .0262464{col 37}{space 1}    2.14{col 46}{space 3}0.032{col 54}{space 4} .0047465{col 67}{space 3} .1076306
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .1552535{col 26}{space 2} .0430742{col 37}{space 1}    3.60{col 46}{space 3}0.000{col 54}{space 4} .0708296{col 67}{space 3} .2396774
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2558107{col 26}{space 2} .0187979{col 37}{space 1}   13.61{col 46}{space 3}0.000{col 54}{space 4} .2189674{col 67}{space 3} .2926539
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.4672527{col 26}{space 2} .0586906{col 37}{space 1}   -7.96{col 46}{space 3}0.000{col 54}{space 4}-.5822841{col 67}{space 3}-.3522214
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. foreach x of numlist 5/12 {c -(}
{txt}  2{com}. local bc`x' : di %05.3f el(r(b),1,`x')
{txt}  3{com}. local sec`x' : di %05.4f el(r(table),2,`x')
{txt}  4{com}. if abs(`bc`x''/`sec`x'') < 1.65 local star`x' 
{txt}  5{com}. if abs(`bc`x''/`sec`x'') >= 1.65 local starc`x'  \sym{c -(}*{c )-}
{txt}  6{com}. if abs(`bc`x''/`sec`x'') >= 1.96 local starc`x' \sym{c -(}**{c )-}
{txt}  7{com}. if abs(`bc`x''/`sec`x'') >= 2.58 local starc`x'  \sym{c -(}***{c )-}
{txt}  8{com}. 
. {c )-}
{txt}
{com}. 
. file open size using "${c -(}root{c )-}Output/tabA13.tex", write replace
{txt}{p 0 4 2}
(file {bf}
/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive/Output/tabA13.tex{rm}
not found)
{p_end}

{com}. file write size "\begin{c -(}tabular{c )-}{c -(}lcccc{c )-}" _n
{txt}
{com}. file write size "\toprule" _n
{txt}
{com}. file write size " &  \multicolumn{c -(}2{c )-}{c -(}c{c )-}{c -(}Without Controls:{c )-} & \multicolumn{c -(}2{c )-}{c -(}c{c )-}{c -(}With Controls:{c )-}\\" _n
{txt}
{com}. file write size "  & Grew Up & Grew Up  & Grew Up & Grew Up \\" _n
{txt}
{com}. file write size " Outcome: & in Europe & Outside Europe & in Europe & Outside Europe" _n
{txt}
{com}. 
. file write size "& \cline{c -(}2-5{c )-}" _n
{txt}
{com}. file write size "\midrule" _n
{txt}
{com}. file write size " No, absolutely not &" (`b5') "`star5'" " &  " (`b9') "`star9'" " &  " (`bc5') "`starc5'" " &  "  (`bc9') "`starc9'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se5') ")" " &  " "(" (`se9') ")" " &  " "(" (`sec5') ")" " &  " "(" (`sec9') ")"  "\\"_n
{txt}
{com}. 
. file write size " No, probably not &" (`b6') "`star6'" " &  " (`b10') "`star10'" " &  " (`bc6') "`starc6'" " &  "  (`bc10') "`starc10'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se6') ")" " &  " "(" (`se10') ")" " &  " "(" (`sec6') ")" " &  " "(" (`sec10') ")"  "\\"_n
{txt}
{com}. 
. 
. file write size " Yes, maybe &" (`b7') "`star7'" " &  " (`b11') "`star11'" " &  " (`bc7') "`starc7'" " &  "  (`bc11') "`starc11'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se7') ")" " &  " "(" (`se11') ")" " &  " "(" (`sec7') ")" " &  " "(" (`sec11') ")"  "\\"_n
{txt}
{com}. 
. 
. file write size " Yes, absolutely &" (`b8') "`star8'" " &  " (`b12') "`star12'" " &  " (`bc8') "`starc8'" " &  "  (`bc12') "`starc12'"  "\\"_n
{txt}
{com}. file write size " &" "(" (`se8') ")" " &  " "(" (`se12') ")" " &  " "(" (`sec8') ")" " &  " "(" (`sec12') ")"  "\\"_n
{txt}
{com}. 
. file write size "\midrule" _n
{txt}
{com}. file write size "\bottomrule" _n
{txt}
{com}. file write size "\end{c -(}tabular{c )-}"
{txt}
{com}. file close size
{txt}
{com}. 
. *End Swedish Survey 2021
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/krve3535/Dropbox/Symbolic Representation/Welcome paper/Replication archive//Output/log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Jan 2024, 00:52:57
{txt}{.-}
{smcl}
{txt}{sf}{ul off}